mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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: b79abf9c3c
(vdpafd)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1b797e6421
commit
b3edf03c31
@ -1456,6 +1456,9 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
||||
VIR_WARN("Failed to remove network backend for netdev %s",
|
||||
netdev_name);
|
||||
|
||||
qemuFDPassTransferMonitorRollback(netpriv->vdpafd, priv->mon);
|
||||
qemuFDPassDirectTransferMonitorRollback(netpriv->slirpfd, priv->mon);
|
||||
|
||||
for (n = netpriv->tapfds; n; n = n->next)
|
||||
qemuFDPassDirectTransferMonitorRollback(n->data, priv->mon);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user