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] tools/libxl: Read soundhw option and pass

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/libxl: Read soundhw option and pass it on to qemu
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Jul 2010 04:50:31 -0700
Delivery-date: Fri, 09 Jul 2010 04:51:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1278607999 -3600
# Node ID 5338c61a8d757291222166b4dff988862e70fdee
# Parent  3e3b611620062d88b08edb17ae62d04d6b818c3a
tools/libxl: Read soundhw option and pass it on to qemu

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c      |    4 ++++
 tools/libxl/libxl.h      |    1 +
 tools/libxl/xl_cmdimpl.c |    2 ++
 3 files changed, 7 insertions(+)

diff -r 3e3b61162006 -r 5338c61a8d75 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Jul 08 17:39:00 2010 +0100
+++ b/tools/libxl/libxl.c       Thu Jul 08 17:53:19 2010 +0100
@@ -878,6 +878,10 @@ static char ** libxl_build_device_model_
                 flexarray_set(dm_args, num++, "-usbdevice");
                 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 3e3b61162006 -r 5338c61a8d75 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Thu Jul 08 17:39:00 2010 +0100
+++ b/tools/libxl/libxl.h       Thu Jul 08 17:53:19 2010 +0100
@@ -161,6 +161,7 @@ typedef struct {
     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 3e3b61162006 -r 5338c61a8d75 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Thu Jul 08 17:39:00 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Thu Jul 08 17:53:19 2010 +0100
@@ -895,6 +895,8 @@ skip_pci:
             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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/libxl: Read soundhw option and pass it on to qemu, Xen patchbot-unstable <=