diff --git a/c0d3f608-libxl-soundhw.patch b/c0d3f608-libxl-soundhw.patch new file mode 100644 index 0000000..1f53c4f --- /dev/null +++ b/c0d3f608-libxl-soundhw.patch @@ -0,0 +1,33 @@ +commit c0d3f608d6981c69f03d19252308a09545d1ab84 +Author: Jim Fehlig +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: diff --git a/libvirt.changes b/libvirt.changes index b2513aa..5fe8ed9 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 5 09:35:12 MDT 2015 - jfehlig@suse.com + +- libxl: support virtual sound devices in HVM domains + c0d3f608-libxl-soundhw.patch + bsc#875216 + ------------------------------------------------------------------- Mon May 4 09:00:24 MDT 2015 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index bec61d3..17dd3f7 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -449,6 +449,7 @@ Source4: libvirtd-relocation-server.fw Source5: polkit-10-virt.rules Source99: baselibs.conf # Upstream patches +Patch0: c0d3f608-libxl-soundhw.patch # Patches pending upstream review # Need to go upstream Patch150: xen-pv-cdrom.patch @@ -978,6 +979,7 @@ Provides a dissector for the libvirt RPC protocol to help debugging it. %prep %setup -q +%patch0 -p1 %patch150 -p1 %patch151 -p1 %patch152 -p1