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 Domain-0

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm vcpu-pin for Domain-0
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 09 Jul 2008 15:58:00 +0900
Cc: Wei.Huang2@xxxxxxx
Delivery-date: Tue, 08 Jul 2008 23:58:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

A bogus error message is shown with the latest xen-unstable when 
using xm vcpu-pin command to Domain-0 and guest domains.  I send 
a patch solving the issue.

 # xm vcpu-pin Domain-0 0 0
 Error: Cannot pin vcpu: 0 to cpu: [0] - list assignment index out of range
 Usage: xm vcpu-pin <Domain> <VCPU|all> <CPUs|all>
 
 Set which CPUs a VCPU can use.
 # xm vcpu-list Domain-0
 Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
 Domain-0                             0     0     0   r--      52.1 0
 Domain-0                             0     1     1   -b-      27.0 any cpu

 # xm create vm1
 Using config file "/etc/xen/vm1".
 Started domain vm1
 # xend stop
 # xend start
 # xm vcpu-pin vm1 0 0
 Error: Cannot pin vcpu: 0 to cpu: [0] - list assignment index out of range
 Usage: xm vcpu-pin <Domain> <VCPU|all> <CPUs|all>
 
 Set which CPUs a VCPU can use.
 # xm vcpu-list vm1
 Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
 vm1                                  1     0     0   -b-      31.2 0


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

Best regards,
 Kan

Attachment: 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>