WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Improve xm vcpu-list command for inactivemanaged

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Improve xm vcpu-list command for inactivemanaged domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 19 Jul 2007 19:09:40 +0900
Delivery-date: Thu, 19 Jul 2007 03:08:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8FC7C9E901534Bkanno.masaki@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8FC7C9E901534Bkanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>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

Sorry, 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>