]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove default audio backend for migratable XML
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 7 Jul 2021 18:45:51 +0000 (19:45 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Jul 2021 12:15:13 +0000 (13:15 +0100)
commit11fcf054e6778e977ea82baa10db9ee7a197d4f6
tree54567fdf190698937c5ca299bec3d75e926ebe7c
parent91f696a6a47e3e10681fe7f9081f428423351b52
qemu: remove default audio backend for migratable XML

When seeing a guest with a sound device, and no audio backend, we
automatically add an audio backend XML element based on the historical
QEMU driver behaviour. Unfortunately when we live migrate back to an
old libvirt, it may not understand the audio driver type we configured.
We thus need to strip the default audio backend when migrating.

Fixes https://gitlab.com/libvirt/libvirt/-/issues/179
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_domain.c
tests/qemumigrationcookiexmldata/full-xml2xml-out.xml