34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
|
commit c0d3f608d6981c69f03d19252308a09545d1ab84
|
||
|
Author: Jim Fehlig <jfehlig@suse.com>
|
||
|
Date: Mon May 4 13:50:10 2015 -0600
|
||
|
|
||
|
libxl: support soundhw for hvm domains
|
||
|
|
||
|
The xend driver and the parsing/formating code in src/xenconfig
|
||
|
have long supported soundhw. Add support in the libxl driver too.
|
||
|
|
||
|
Index: libvirt-1.2.15/src/libxl/libxl_conf.c
|
||
|
===================================================================
|
||
|
--- libvirt-1.2.15.orig/src/libxl/libxl_conf.c
|
||
|
+++ libvirt-1.2.15/src/libxl/libxl_conf.c
|
||
|
@@ -678,6 +678,19 @@ libxlMakeDomBuildInfo(virDomainDefPtr de
|
||
|
libxl_defbool_set(&b_info->u.hvm.hpet, 1);
|
||
|
}
|
||
|
}
|
||
|
+
|
||
|
+ if (def->nsounds > 0) {
|
||
|
+ /*
|
||
|
+ * Use first sound device. man xl.cfg(5) describes soundhw as
|
||
|
+ * a single device. From the man page: soundhw=DEVICE
|
||
|
+ */
|
||
|
+ virDomainSoundDefPtr snd = def->sounds[0];
|
||
|
+
|
||
|
+ if (VIR_STRDUP(b_info->u.hvm.soundhw,
|
||
|
+ virDomainSoundModelTypeToString(snd->model)) < 0)
|
||
|
+ return -1;
|
||
|
+ }
|
||
|
+
|
||
|
for (i = 0; i < def->os.nBootDevs; i++) {
|
||
|
switch (def->os.bootDevs[i]) {
|
||
|
case VIR_DOMAIN_BOOT_FLOPPY:
|