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

[Xen-devel] [PATCH] Fix xm vcpu-pin for inactive managed domains

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm vcpu-pin for inactive managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 18:00:43 +0900
Delivery-date: Mon, 03 Mar 2008 01:01:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

We cannot currently change cpu affinity definitions of inactive managed 
domains by xm vcpu-pin command. 

# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                        0                   0.0 any cpu
vm1                                        1                   0.0 any cpu
# xm vcpu-pin vm1 all 2,3
Error: Cannot pin vcpu: 0 to cpu: [2, 3] - an integer is required
Usage: xm vcpu-pin <Domain> <VCPU|all> <CPUs|all>

Set which CPUs a VCPU can use.


This patch enables changing cpu affinity definitions of inactive managed 
domains. 
However, we cannot change cpu affinity definitions to each vcpu because 
we cannot currently define cpu affinity definitions to each vcpu to domain 
configuration definitions.  Therefore, we need to specify 'all' to VCPU 
argument of xm vcpu-pin command. 

# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                        0                   0.0 any cpu
vm1                                        1                   0.0 any cpu
# xm vcpu-pin vm1 all 0,1
# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                        0                   0.0 0-1
vm1                                        1                   0.0 0-1
# xm vcpu-pin vm1 all 2,3
# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                        0                   0.0 2-3
vm1                                        1                   0.0 2-3
# xm vcpu-pin vm1 0 0,1
Error: Must specify 'all' to VCPU for inactive managed domains
Usage: xm vcpu-pin <Domain> <VCPU|all> <CPUs|all>

Set which CPUs a VCPU can use.


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_vcpupin.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xm vcpu-pin for inactive managed domains, Masaki Kanno <=