1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-22 17:57:43 +03:00
Jincheng Miao e430410480 virsh: forbid negative vcpu argument to vcpupin
The vcpupin command allowed specifying a negative number for the --vcpu
argument. This would the overflow when the underlying virDomainPinVcpu
API was called.

 $ virsh vcpupin r7 -1 0
 error: numerical overflow: input too large: 4294967295

Switch the vCPU variable to a unsigned int and parse it using the
corresponding function.

Also improve the vcpupin test to cover all the defects.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1101059

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
2014-06-12 14:06:21 +02:00
..
2014-01-01 16:34:13 +00:00
2012-04-02 09:33:54 -06:00
2014-03-25 17:13:27 -04:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2014-06-10 15:07:36 +01:00
2013-07-29 13:09:39 -06:00
2013-03-19 13:13:28 -06:00
2013-10-08 12:39:30 +01:00
2014-06-06 16:52:27 +02:00
2013-10-14 10:31:01 +01:00
2014-04-08 11:15:55 +01:00
2014-04-21 16:49:08 -06:00