mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Fix vcpu hotplug bug: transfer vcpu_avail hex string to qemu
Currently qemu has a bug: When maxvcpus > 64, qemu will get wrong vcpu bitmap (s->cpus_sts[i]) since it only get bitmap from a long variable. This patch, cooperate with another qemu patch, is to fix this bug. This patch transfer a vcpu_avail string in a hex string format, so that at qemu side it's more easier to get vcpu bitmap from hex string, especially when many vcpus, like more than 64. (Also update QEMU_TAG for matching qemu-side update) Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
This commit is contained in:
1 parent
9d35e7f374
commit
978f36d60a
2 files changed
+4
-5
No files matched your search
@@ -838,7 +838,7 @@ class HVMImageHandler(ImageHandler):
|
||||
def parseDeviceModelArgs(self, vmConfig):
|
||||
ret = ImageHandler.parseDeviceModelArgs(self, vmConfig)
|
||||
ret = ret + ['-vcpus', str(self.vm.getVCpuCount())]
|
||||
ret = ret + ['-vcpu_avail', str(self.vm.getVCpuAvail())]
|
||||
ret = ret + ['-vcpu_avail', hex(self.vm.getVCpuAvail())]
|
||||
|
||||
if self.kernel:
|
||||
log.debug("kernel = %s", self.kernel)
|
||||
|
||||