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] [HVM] Wnable sound card support for qemu.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [HVM] Wnable sound card support for qemu.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Aug 2006 11:00:15 +0000
Delivery-date: Fri, 04 Aug 2006 04:02:54 -0700
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 chris@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 92ef1215a6f1ecaa28b5f114d55c40ce05ae45ac
# Parent  70d43812ab025d9d27c7ef639d8f26ffdc10fa5b
[HVM] Wnable sound card support for qemu.
Need a sound card to pass some benchmark check.

Signed-off-by: Edwin Zhai <edwin.zhai@xxxxxxxxx>
---
 tools/examples/xmexample.hvm   |    4 ++--
 tools/python/xen/xend/image.py |    5 ++---
 tools/python/xen/xm/create.py  |    8 ++++----
 3 files changed, 8 insertions(+), 9 deletions(-)

diff -r 70d43812ab02 -r 92ef1215a6f1 tools/examples/xmexample.hvm
--- a/tools/examples/xmexample.hvm      Fri Aug 04 09:28:34 2006 +0100
+++ b/tools/examples/xmexample.hvm      Fri Aug 04 09:31:06 2006 +0100
@@ -149,8 +149,8 @@ serial='pty'
 
 
 #-----------------------------------------------------------------------------
-#   enable audio support
-#audio=1
+#   enable sound card support, [sb16|es1370|all|..,..], default none
+#soundhw='sb16'
 
 
 #-----------------------------------------------------------------------------
diff -r 70d43812ab02 -r 92ef1215a6f1 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Fri Aug 04 09:28:34 2006 +0100
+++ b/tools/python/xen/xend/image.py    Fri Aug 04 09:31:06 2006 +0100
@@ -249,7 +249,7 @@ class HVMImageHandler(ImageHandler):
     # Return a list of cmd line args to the device models based on the
     # xm config file
     def parseDeviceModelArgs(self, imageConfig, deviceConfig):
-        dmargs = [ 'boot', 'fda', 'fdb', 'audio',
+        dmargs = [ 'boot', 'fda', 'fdb', 'soundhw',
                    'localtime', 'serial', 'stdvga', 'isa', 'vcpus',
                   'usb', 'usbdevice']
         ret = []
@@ -258,10 +258,9 @@ class HVMImageHandler(ImageHandler):
 
             # python doesn't allow '-' in variable names
             if a == 'stdvga': a = 'std-vga'
-            if a == 'audio': a = 'enable-audio'
 
             # Handle booleans gracefully
-            if a in ['localtime', 'std-vga', 'isa', 'enable-audio', 'usb']:
+            if a in ['localtime', 'std-vga', 'isa', 'usb']:
                 if v != None: v = int(v)
                 if v: ret.append("-%s" % a)
             else:
diff -r 70d43812ab02 -r 92ef1215a6f1 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Fri Aug 04 09:28:34 2006 +0100
+++ b/tools/python/xen/xm/create.py     Fri Aug 04 09:31:06 2006 +0100
@@ -400,9 +400,9 @@ gopts.var('nographic', val='no|yes',
           fn=set_bool, default=0,
           use="Should device models use graphics?")
 
-gopts.var('audio', val='no|yes',
-          fn=set_bool, default=0,
-          use="Should device models enable audio?")
+gopts.var('soundhw', val='audiodev',
+          fn=set_value, default='',
+          use="Should device models enable audio device?")
 
 gopts.var('vnc', val='',
           fn=set_value, default=None,
@@ -626,7 +626,7 @@ def configure_hvm(config_image, vals):
     """Create the config for HVM devices.
     """
     args = [ 'device_model', 'pae', 'vcpus', 'boot', 'fda', 'fdb',
-             'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'audio',
+             'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'soundhw',
              'vnc', 'vncdisplay', 'vncconsole', 'sdl', 'display',
              'acpi', 'apic', 'xauthority', 'usb', 'usbdevice' ]
     for a in args:

_______________________________________________
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] [HVM] Wnable sound card support for qemu., Xen patchbot-unstable <=