OK, I'm going to qualify that a bit. Is it always safe to access
arg->data? I think probably it is, but I'm not sure so I modified the
patch slightly just to print an error message like this:
$ src/virsh -c test:///default vcpupin test AAA 0,1
error: vcpupin: Invalid or missing vCPU number.
Rich.
PS. Please try to attach your patches instead of pasting them inline.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top