mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Merged.
This commit is contained in:
commit
9f929dc9af
70 files changed
+3852
-718
No files matched your search
@@ -237,7 +237,7 @@ class VmxImageHandler(ImageHandler):
|
||||
# Return a list of cmd line args to the device models based on the
|
||||
# xm config file
|
||||
def parseDeviceModelArgs(self, imageConfig, deviceConfig):
|
||||
dmargs = [ 'cdrom', 'boot', 'fda', 'fdb', 'ne2000',
|
||||
dmargs = [ 'cdrom', 'boot', 'fda', 'fdb', 'ne2000', 'audio',
|
||||
'localtime', 'serial', 'stdvga', 'isa', 'vcpus']
|
||||
ret = []
|
||||
for a in dmargs:
|
||||
@@ -246,9 +246,10 @@ class VmxImageHandler(ImageHandler):
|
||||
# python doesn't allow '-' in variable names
|
||||
if a == 'stdvga': a = 'std-vga'
|
||||
if a == 'ne2000': a = 'nic-ne2000'
|
||||
if a == 'audio': a = 'enable-audio'
|
||||
|
||||
# Handle booleans gracefully
|
||||
if a in ['localtime', 'std-vga', 'isa', 'nic-ne2000']:
|
||||
if a in ['localtime', 'std-vga', 'isa', 'nic-ne2000', 'enable-audio']:
|
||||
if v != None: v = int(v)
|
||||
if v: ret.append("-%s" % a)
|
||||
else:
|
||||
|
||||
@@ -372,6 +372,10 @@ gopts.var('ne2000', val='no|yes',
|
||||
fn=set_bool, default=0,
|
||||
use="Should device models use ne2000?")
|
||||
|
||||
gopts.var('audio', val='no|yes',
|
||||
fn=set_bool, default=0,
|
||||
use="Should device models enable audio?")
|
||||
|
||||
gopts.var('vnc', val='',
|
||||
fn=set_value, default=None,
|
||||
use="""Should the device model use VNC?""")
|
||||
@@ -521,7 +525,7 @@ def configure_vmx(config_image, vals):
|
||||
"""Create the config for VMX devices.
|
||||
"""
|
||||
args = [ 'device_model', 'vcpus', 'cdrom', 'boot', 'fda', 'fdb',
|
||||
'localtime', 'serial', 'stdvga', 'isa', 'nographic',
|
||||
'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'audio',
|
||||
'vnc', 'vncviewer', 'sdl', 'display', 'ne2000', 'lapic']
|
||||
for a in args:
|
||||
if (vals.__dict__[a]):
|
||||
|
||||