Masaki Kanno
2007-Feb-17 09:58 UTC
[Xen-devel] [PATCH] Fix xm vcpu-set command for when wrong number of VCPU is given
Hi, The xm vcpu-set command is able to set zero to the number of VCPU of a domain. Therefore I think that it is a natural result that the xm start command fails. But I think that a xm vcpu-set command must fail usually. # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 942 2 r----- 75.2 vm1 256 2 0.0 # xm vcpu-set vm1 0 # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 942 2 r----- 76.2 vm1 256 0 0.0 # xm start vm1 Error: (1, ''Internal error'', ''launch_vm: SETVCPUCONTEXT failed (rc=-1)\n'') Usage: xm start <DomainName> Start a Xend managed domain -p, --paused Do not unpause domain after starting it This patch checks the number of VCPU given by the xm vcpu-set command. # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 942 2 r----- 71.2 vm1 256 2 0.0 # xm vcpu-set vm1 0 Error: Invalid VCPUs Usage: xm vcpu-set <Domain> <vCPUs> Set the number of active VCPUs for allowed for the domain. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel