mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xenfb: Dynamic modes support.
Attached patch adds dynamic frame buffer size support to the xenfb PV backend QEMU xenfb. Backend sets feature-resize and handles the resize frame buffer event. Corresponding frontend LINUX patch is required for functionality but this patch is not dependent on it, preserving backwards compatibility. Signed-off-by: Pat Campbell <plc@novell.com>
This commit is contained in:
1 parent
6131fde768
commit
e687956536
4 files changed
+62
-7
No files matched your search
@@ -6,7 +6,7 @@ import xen.xend
|
||||
import os
|
||||
|
||||
CONFIG_ENTRIES = ['type', 'vncdisplay', 'vnclisten', 'vncpasswd', 'vncunused',
|
||||
'display', 'xauthority', 'keymap',
|
||||
'videoram', 'display', 'xauthority', 'keymap',
|
||||
'uuid', 'location', 'protocol', 'opengl']
|
||||
|
||||
class VfbifController(DevController):
|
||||
|
||||
@@ -500,6 +500,11 @@ gopts.var('vncunused', val='',
|
||||
use="""Try to find an unused port for the VNC server.
|
||||
Only valid when vnc=1.""")
|
||||
|
||||
gopts.var('videoram', val='',
|
||||
fn=set_value, default=None,
|
||||
use="""Maximum amount of videoram PV guest can allocate
|
||||
for frame buffer.""")
|
||||
|
||||
gopts.var('sdl', val='',
|
||||
fn=set_value, default=None,
|
||||
use="""Should the device model use SDL?""")
|
||||
@@ -645,7 +650,8 @@ def configure_vfbs(config_devs, vals):
|
||||
d['type'] = 'sdl'
|
||||
for (k,v) in d.iteritems():
|
||||
if not k in [ 'vnclisten', 'vncunused', 'vncdisplay', 'display',
|
||||
'xauthority', 'type', 'vncpasswd', 'opengl' ]:
|
||||
'videoram', 'xauthority', 'type', 'vncpasswd',
|
||||
'opengl' ]:
|
||||
err("configuration option %s unknown to vfbs" % k)
|
||||
config.append([k,v])
|
||||
if not d.has_key("keymap"):
|
||||
|
||||