[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] HVM vcpu add/remove: parse vcpu_avail to Qemu



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1260783060 0
# Node ID 22a28ffb6034c61b4a8a743a3360d9f0ad212820
# Parent  5ea096ef7603da465562d7e4177225bc3a298723
HVM vcpu add/remove: parse vcpu_avail to Qemu

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

Disable qemu cmdline option until our qemu supports it.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    3 +++
 tools/python/xen/xend/image.py          |    1 +
 2 files changed, 4 insertions(+)

diff -r 5ea096ef7603 -r 22a28ffb6034 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Mon Dec 14 09:25:47 2009 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Mon Dec 14 09:31:00 2009 +0000
@@ -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:
diff -r 5ea096ef7603 -r 22a28ffb6034 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Mon Dec 14 09:25:47 2009 +0000
+++ b/tools/python/xen/xend/image.py    Mon Dec 14 09:31:00 2009 +0000
@@ -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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.