Fix xm vcpu-pin for Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-07-09 10:38:20 +01:00
1 parent b6dba5c5e0
commit 292155263c
1 file changed
+6
+6
View File
@@ -1129,6 +1129,12 @@ class XendDomainInfo:
else:
self.info[arg] = val
# read CPU Affinity
self.info['cpus'] = []
vcpus_info = self.getVCPUInfo()
for vcpu_info in sxp.children(vcpus_info, 'vcpu'):
self.info['cpus'].append(sxp.child_value(vcpu_info, 'cpumap'))
# For dom0, we ignore any stored value for the vcpus fields, and
# read the current value from Xen instead. This allows boot-time
# settings to take precedence over any entries in the store.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.