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-devel

[Xen-devel] [PATCH] libxl: Read soundhw option and pass it on to qemu

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] libxl: Read soundhw option and pass it on to qemu
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Tue, 6 Jul 2010 17:31:17 +0100
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Tue, 06 Jul 2010 09:31:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r 9d965ac1b0db -r fbe684e2945f tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Mon Jul 05 08:40:26 2010 +0100
+++ b/tools/libxl/libxl.c       Tue Jul 06 17:30:55 2010 +0100
@@ -879,6 +879,10 @@
                 flexarray_set(dm_args, num++, info->usbdevice);
             }
         }
+        if (info->soundhw) {
+            flexarray_set(dm_args, num++, "-soundhw");
+            flexarray_set(dm_args, num++, info->soundhw);
+        }
         if (info->apic) {
             flexarray_set(dm_args, num++, "-acpi");
         }
diff -r 9d965ac1b0db -r fbe684e2945f tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Mon Jul 05 08:40:26 2010 +0100
+++ b/tools/libxl/libxl.h       Tue Jul 06 17:30:55 2010 +0100
@@ -161,6 +161,7 @@
     char *boot; /* boot order, for example dca */
     bool usb; /* usb support enabled or disabled */
     char *usbdevice; /* enable usb mouse: tablet for absolute mouse, mouse for 
PS/2 protocol relative mouse */
+    char *soundhw; /* enable sound hardware */
     bool apic; /* apic enabled or disabled */
     int vcpus; /* max number of vcpus */
     int vcpu_avail; /* vcpus actually available */
diff -r 9d965ac1b0db -r fbe684e2945f tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Mon Jul 05 08:40:26 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Tue Jul 06 17:30:55 2010 +0100
@@ -886,6 +886,8 @@
             dm_info->usb = l;
         if (!xlu_cfg_get_string (config, "usbdevice", &buf))
             dm_info->usbdevice = strdup(buf);
+        if (!xlu_cfg_get_string (config, "soundhw", &buf))
+            dm_info->soundhw = strdup(buf);
         if (!xlu_cfg_get_long (config, "xen_platform_pci", &l))
             dm_info->xen_platform_pci = l;
     }

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>