debuggers.hg

changeset 20686:22a28ffb6034

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 14 09:31:00 2009 +0000 (2009-12-14)
parents 5ea096ef7603
children 92d0cfcff6dd
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Dec 14 09:25:47 2009 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Dec 14 09:31:00 2009 +0000
     1.3 @@ -1903,6 +1903,9 @@ class XendDomainInfo:
     1.4      def getVCpuCount(self):
     1.5          return self.info['VCPUs_max']
     1.6  
     1.7 +    def getVCpuAvail(self):
     1.8 +        return self.info['vcpu_avail']
     1.9 +
    1.10      def setVCpuCount(self, vcpus):
    1.11          def vcpus_valid(n):
    1.12              if vcpus <= 0:
     2.1 --- a/tools/python/xen/xend/image.py	Mon Dec 14 09:25:47 2009 +0000
     2.2 +++ b/tools/python/xen/xend/image.py	Mon Dec 14 09:31:00 2009 +0000
     2.3 @@ -827,6 +827,7 @@ class HVMImageHandler(ImageHandler):
     2.4      def parseDeviceModelArgs(self, vmConfig):
     2.5          ret = ImageHandler.parseDeviceModelArgs(self, vmConfig)
     2.6          ret = ret + ['-vcpus', str(self.vm.getVCpuCount())]
     2.7 +#        ret = ret + ['-vcpu_avail', str(self.vm.getVCpuAvail())]
     2.8  
     2.9          if self.kernel:
    2.10              log.debug("kernel         = %s", self.kernel)