]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove nonsensical sanity check in processNetdevStreamDisconnectedEvent()
authorLaine Stump <laine@redhat.com>
Fri, 4 Apr 2025 20:48:23 +0000 (16:48 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 11 Apr 2025 03:47:16 +0000 (23:47 -0400)
commit51a54dc1c4ecf37d60acee1cb94252e51c5ef627
tree818d4a78ef39ae065ee3099231920611482a4564
parent68a83cac64b90b7069e6213d70a2faadb552cb80
qemu: remove nonsensical sanity check in processNetdevStreamDisconnectedEvent()

By definition QEMU will never send a NETDEV_STREAM_DISCONNECTED event
if it doesn't support the reconnect option for a stream netdev. And
even if, by some comedy of errors, it did send
NETDEV_STREAM_DISCONNECTED in that case, our response to the event
doesn't request anything at all of QEMU (much less something that
would fail if QEMU didn't understand NETDEV_STREAM_DISCONNECTED) - it
just starts a new passt process to replace the one that has been
terminated, so we don't need to check the QEMU capabilities for
QEMU_CAPS_NETDEV_STREAM_RECONNECT.

Signed-off-by: Laine Stump <laine@redhat.com>
Tested-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c