WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [PVFB][TOOLS] Fix save/restore for domain

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 03 Dec 2006 15:10:22 +0000
Delivery-date: Sun, 03 Dec 2006 07:10:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [PVFB][TOOLS] Fix save/restore for domains with PV framebuffers., Xen patchbot-unstable <=