]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hook up passt config to qemu domains
authorLaine Stump <laine@redhat.com>
Thu, 15 Dec 2022 19:19:16 +0000 (14:19 -0500)
committerLaine Stump <laine@redhat.com>
Tue, 10 Jan 2023 06:19:25 +0000 (01:19 -0500)
commita56f0168d576fa01cec204dc3c67d4d63ab8487f
tree0160089205ea7a29038aabc7ff13eae22064783f
parent98a24813c8d5cde9522b47e6863938d1a3e24448
qemu: hook up passt config to qemu domains

This consists of (1) adding the necessary args to the qemu commandline
netdev option, and (2) starting a passt process prior to starting
qemu, and making sure that it is terminated when it's no longer
needed. Under normal circumstances, passt will terminate itself as
soon as qemu closes its socket, but in case of some error where qemu
is never started, or fails to startup completely, we need to terminate
passt manually.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
16 files changed:
meson.build
po/POTFILES
src/qemu/meson.build
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_extdevice.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_passt.c [new file with mode: 0644]
src/qemu/qemu_passt.h [new file with mode: 0644]
src/qemu/qemu_process.c
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/net-user-passt.args [new file with mode: 0644]
tests/qemuxml2argvdata/net-user-passt.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvtest.c