HVM vcpu add/remove: parse vcpu_avail to Qemu

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>

Disable qemu cmdline option until our qemu supports it.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-12-14 09:31:00 +00:00
1 parent cf75018188
commit b8a087fb41
2 files changed
+4

No files matched your search

+3
View File
@@ -1903,6 +1903,9 @@ class XendDomainInfo:
def getVCpuCount(self):
return self.info['VCPUs_max']
def getVCpuAvail(self):
return self.info['vcpu_avail']
def setVCpuCount(self, vcpus):
def vcpus_valid(n):
if vcpus <= 0:
+1
View File
@@ -827,6 +827,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())]
if self.kernel:
log.debug("kernel = %s", self.kernel)
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.