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

[Xen-changelog] [xen-unstable] [PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.



# HG changeset patch
# User Steven Smith <ssmith@xxxxxxxxxxxxx>
# Node ID 2a6a793a2f680bbac8d11696e955d69335f98bf4
# Parent  b22274d1311c3f59bc9ddf4cab1a94b368aa8748
[PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.

Signed-off-by: Steven Smith <sos22@xxxxxxxxx>
---
 tools/python/xen/xend/server/vfbif.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletion(-)

diff -r b22274d1311c -r 2a6a793a2f68 tools/python/xen/xend/server/vfbif.py
--- a/tools/python/xen/xend/server/vfbif.py     Fri Dec 01 12:20:12 2006 +0000
+++ b/tools/python/xen/xend/server/vfbif.py     Fri Dec 01 12:38:41 2006 +0000
@@ -14,11 +14,13 @@ def spawn_detached(path, args, env):
         
 class VfbifController(DevController):
     """Virtual frame buffer controller. Handles all vfb devices for a domain.
+    Note that we only support a single vfb per domain at the moment.
     """
 
     def __init__(self, vm):
         DevController.__init__(self, vm)
-
+        self.config = {}
+        
     def getDeviceDetails(self, config):
         """@see DevController.getDeviceDetails"""
         devid = 0
@@ -26,8 +28,15 @@ class VfbifController(DevController):
         front = {}
         return (devid, back, front)
 
+    def getDeviceConfiguration(self, devid):
+        r = DevController.getDeviceConfiguration(self, devid)
+        for (k,v) in self.config.iteritems():
+            r[k] = v
+        return r
+    
     def createDevice(self, config):
         DevController.createDevice(self, config)
+        self.config = config
         std_args = [ "--domid", "%d" % self.vm.getDomid(),
                      "--title", self.vm.getName() ]
         t = config.get("type", None)

_______________________________________________
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®.