]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Rollback FD passthrough for 'slirpfd' and 'vdpafd' on hotplug failure
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 Aug 2024 14:04:20 +0000 (16:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Aug 2024 14:34:47 +0000 (16:34 +0200)
commitb3edf03c310b7c4b9fc67fc6c9e3129312e37653
tree6a852ef0a5c9d6e4d081eafb11b3ee0868d0707f
parent1b797e64218b088467c104122a52e84e2062a351
qemu: hotplug: Rollback FD passthrough for 'slirpfd' and 'vdpafd' on hotplug failure

On failure to plug the device the cleanup path didn't roll back the FD
passing to qemu thus qemu would hold the FDs indefinitely.

Resolves: https://issues.redhat.com/browse/RHEL-53964
Fixes: b79abf9c3cdab8bcecfa8769629a4cdf4bf0b6c3 (vdpafd)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c