libxl: Read soundhw option and pass it on to qemu
PATCH 1/1 libxl: Read soundhw option and pass it on to qemu
Signed-off-by George Dunlap <[email protected]>
tools/libxl/libxl.c +4 -0
@@ -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" ); }
tools/libxl/libxl.h +1 -0
@@ -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 */
tools/libxl/xl_cmdimpl.c +2 -0
@@ -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; }
Quoted 2 lines · George Dunlap
Signed-off-by George Dunlap <[email protected]>