Fix xm vcpu-set command for the managed domain
PATCH 1/1 Fix xm vcpu-set command for the managed domain
Hi,
Currently, the number of VCPUs of the managed domain does not change immediately after xm vcpu-set command. We finally can confirm that it changed after starting the domain by xm start command.
# xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 2 0.0 # xm vcpu-set vm1 1 # xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 2 0.0 # xm start vm1 # xm list vm1 Name ID Mem VCPUs State Time(s) vm1 1 256 1 -b---- 24.3
This patch changes the number of VCPUs of the managed domain immediately after xm vcpu-set command.
# xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 2 0.0 # xm vcpu-set vm1 1 # xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 1 0.0
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xend/XendDomainInfo.py +1 -1
@@ -983,7 +983,7 @@ class XendDomainInfo: self.info['VCPUs_live'] = vcpus self._writeDom(self._vcpuDomDetails()) else: - self.info['VCPUs_live'] = vcpus + self.info['VCPUs_max'] = vcpus xen.xend.XendDomain.instance().managed_config_save(self) log.info("Set VCPU count on domain %s to %d", self.info['name_label'], vcpus)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel