All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1] HVM vcpu add/remove: parse vcpu_avail to Qemu
@ 2009-12-09  9:28 Liu, Jinsong
  0 siblings, 0 replies; only message in thread
From: Liu, Jinsong @ 2009-12-09  9:28 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

HVM vcpu add/remove: parse vcpu_avail to Qemu

We will support vcpu add/remove at HVM guest, currently xend has parse 'vcpus' to qemu, we need also parse 'vcpu_avail' to qemu.

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

[-- Attachment #2: ras_xen_py_1.patch --]
[-- Type: application/octet-stream, Size: 1293 bytes --]

HVM vcpu add/remove: parse vcpu_avail to Qemu

We will support vcpu add/remove at HVM guest, currently xend has parse 'vcpus' to qemu, we need also parse 'vcpu_avail' to qemu.

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

diff -r fde8e69858b0 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	Fri Dec 04 07:11:44 2009 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Dec 08 16:45:05 2009 +0800
@@ -1872,6 +1872,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 fde8e69858b0 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py	Fri Dec 04 07:11:44 2009 +0000
+++ b/tools/python/xen/xend/image.py	Tue Dec 08 16:45:05 2009 +0800
@@ -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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-09  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-09  9:28 [PATCH 1] HVM vcpu add/remove: parse vcpu_avail to Qemu Liu, Jinsong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.