[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] domain builder: make vfb = [ 'type=sdl' ] work
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1203343796 0 # Node ID f2811c8c09f000b2a5724397492401dde4553da4 # Parent d206568ac964dbe05a0eeb0ec3f5fa0f57a7b392 domain builder: make vfb = [ 'type=sdl' ] work When setting vfb = [ 'type=sdl' ] in a domain config file, qemu seems to be still using vnc. Make it use sdl as expected. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> xen-unstable changeset: 17009:f8b855ffa4703e8e92e23cb1e642d7457c51d6d0 xen-unstable date: Mon Feb 11 10:06:51 2008 +0000 --- tools/python/xen/xend/image.py | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff -r d206568ac964 -r f2811c8c09f0 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Mon Feb 18 14:09:26 2008 +0000 +++ b/tools/python/xen/xend/image.py Mon Feb 18 14:09:56 2008 +0000 @@ -91,12 +91,12 @@ class ImageHandler: ("image/cmdline", self.cmdline), ("image/ramdisk", self.ramdisk)) - self.dmargs = self.parseDeviceModelArgs(vmConfig) self.device_model = vmConfig['platform'].get('device_model') self.display = vmConfig['platform'].get('display') self.xauthority = vmConfig['platform'].get('xauthority') self.vncconsole = vmConfig['platform'].get('vncconsole') + self.dmargs = self.parseDeviceModelArgs(vmConfig) self.pid = None @@ -200,8 +200,14 @@ class ImageHandler: for dev_uuid in vmConfig['console_refs']: dev_type, dev_info = vmConfig['devices'][dev_uuid] if dev_type == 'vfb': - vnc_config = dev_info.get('other_config', {}) - has_vnc = True + vfb_type = dev_info.get('type', {}) + if vfb_type == 'sdl': + self.display = dev_info.get('display', {}) + self.xauthority = dev_info.get('xauthority', {}) + has_sdl = True + else: + vnc_config = dev_info.get('other_config', {}) + has_vnc = True break keymap = vmConfig['platform'].get("keymap") _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |