]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: put vhost-user code that's special for passt in a helper function
authorLaine Stump <laine@redhat.com>
Fri, 4 Apr 2025 23:38:28 +0000 (19:38 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 11 Apr 2025 03:47:34 +0000 (23:47 -0400)
commit95ff77f2896478e039673bb552affec2c5a5e822
treeec68a2f0da46f945997da63e174759507c2a0847
parentdedf1ada95f046310827194eb8794fa18975b9e7
qemu: put vhost-user code that's special for passt in a helper function

Rather than duplicating these two lines of chr device object setup for
hotplug and domain start, put them in a helper function that's called
from both places. That way when we need to setup *more* stuff specific
to passt+vhostuser, we can just add it in that one place.

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_hotplug.c
src/qemu/qemu_passt.c
src/qemu/qemu_passt.h
src/qemu/qemu_process.c