Masaki Kanno
2007-Mar-13 10:19 UTC
[Xen-devel] [PATCH] Improve xm vcpu-pin command for releasing CPU affinity
Hi, Currently, if users would like to release CPU affinity of virtual CPU, they should specify the following values to the third argument of the xm vcpu-pin command. - 0-<Maximum physical CPU number>, or - 0-63 Generally, almost all users know the number of the physical CPU of the machines they are using. Therefore when they would like to release CPU affinity of virtual CPU, they will be able to specify an appropriate value to the third argument of the xm vcpu-pin command. However, I think it will be more convenient if they can release CPU affinity by specifying a special keyword. This patch improves the third argument of the xm vcpu-pin command. They are able to release CPU affinity of virtual CPU by specifying the special keyword "all". # xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 9 0 1 -b- 552.7 1 vm1 9 1 0 -b- 560.2 0 # xm vcpu-pin vm1 0 all # xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 9 0 0 -b- 553.1 any cpu vm1 9 1 0 -b- 560.6 0 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