mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Fix xm vcpu-pin for Domain-0
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
b6dba5c5e0
commit
292155263c
1 file changed
+6
@@ -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.
|
||||
|
||||