Masaki Kanno
2007-Jul-19 09:41 UTC
[Xen-devel] [PATCH] Improve xm vcpu-list command for inactive managed domains
Hi, When I tried xm vcpu-list command to an inactive managed domain, I saw the following error message. # xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 1 0.0 # xm vcpu-list vm1 Error: an integer is required Usage: xm vcpu-list [<Domain>] List the VCPUs for a domain or all domains. This patch shows vcpu-list of inactive managed domains as follows. We can confirm CPU Affinity of inactive managed domains by xm vcpu-list command. # xm new vm1.conf cpus="0" Using config file "./vm1.conf". # xm new vm2.conf cpus="1" Using config file "./vm2.conf". # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 941 2 r----- 63.2 vm1 256 1 0.0 vm2 256 1 0.0 # xm vcpu-list Name ID VCPU CPU State Time(s) CPU Affinity Domain-0 0 0 r-- 32.8 any cpu Domain-0 1 1 -b- 30.8 any cpu vm1 0 0.0 0 vm2 0 0.0 1 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
Masaki Kanno
2007-Jul-19 10:09 UTC
Re: [Xen-devel] [PATCH] Improve xm vcpu-list command for inactivemanaged domains
>Hi, > >When I tried xm vcpu-list command to an inactive managed domain, >I saw the following error message. > ># xm list vm1 >Name ID Mem VCPUs State >Time(s) >vm1 256 1 >0.0 ># xm vcpu-list vm1 >Error: an integer is required >Usage: xm vcpu-list [<Domain>] > >List the VCPUs for a domain or all domains. > > >This patch shows vcpu-list of inactive managed domains as follows. >We can confirm CPU Affinity of inactive managed domains by xm vcpu-list >command. > ># xm new vm1.conf cpus="0" >Using config file "./vm1.conf". ># xm new vm2.conf cpus="1" >Using config file "./vm2.conf". ># xm list >Name ID Mem VCPUs State >Time(s) >Domain-0 0 941 2 r----- >63.2 >vm1 256 1 >0.0 >vm2 256 1 >0.0 ># xm vcpu-list >Name ID VCPU CPU State Time(s) CPU >Affinity >Domain-0 0 0 r-- 32.8 any cpu >Domain-0 1 1 -b- 30.8 any cpu >vm1 0 0.0 0 >vm2 0 0.0 1Sorry, I attached a wrong result. I attach a right result. # xm vcpu-list Name ID VCPU CPU State Time(s) CPU Affinity Domain-0 0 0 1 r-- 57.1 any cpu Domain-0 0 1 0 -b- 68.4 any cpu vm1 0 0.0 0 vm2 0 0.0 1 Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel