]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: respond to NETDEV_VHOST_USER_DISCONNECTED event
authorLaine Stump <laine@redhat.com>
Fri, 4 Apr 2025 21:16:43 +0000 (17:16 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 11 Apr 2025 03:47:25 +0000 (23:47 -0400)
commitdedf1ada95f046310827194eb8794fa18975b9e7
tree42d3ddf6bc73bae343284b0b460d863e02f3d4a2
parent03a6bc7752ec73d7ea222d5386e8f4124fe51c7f
qemu: respond to NETDEV_VHOST_USER_DISCONNECTED event

This response to this event is identical to NETDEV_STREAM_DISCONNECTED
(start a new passt process to replace the one that just disappeared -
see commitf62ce81b8a5), except that the new passt process will have
"--vhost-user" appended to the commandline. Fortunately that
difference is already handled based on the virDomainNetDef contents,
so we can, in fact, respond to the new event in exactly the same
manner.

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_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c