]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Reorder setup of disk backend metadata
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 May 2023 12:43:17 +0000 (14:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 May 2023 14:32:29 +0000 (16:32 +0200)
commit9b8bb536ff999fa61e41869bd98a026b8e23378f
tree4b4f2be8e61a4b7e621b66a367b80a0e21864d9e
parentd18572b4b706fae40a668cac2aa4e7147b160cc0
qemu: hotplug: Reorder setup of disk backend metadata

The regular VM startup code first calls the setup of the disk backing
chain as defined in the XML and then calls the function to load the
rest of the backing chain from the image metadata. The hotplug code
did it the other way around, thus causing a failure when attempting
to attach a QCOW2 image via FD passing.

Reorder the hotplug code to have the same order.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2193315
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c