]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: automatically set model type='virtio' for interface type='vhostuser'
authorLaine Stump <laine@redhat.com>
Sun, 9 Feb 2025 23:23:03 +0000 (18:23 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 17 Feb 2025 04:58:35 +0000 (23:58 -0500)
commitc4746418d7e952888c0989db3a5c723d888fc32d
tree3d8bf3b9bbc09b8a223def6f35b1e0b5b1fd8bec
parent154d44a585c40d0b6cf3bae674da2a8ca11ddb95
qemu: automatically set model type='virtio' for interface type='vhostuser'

Both vdpa and vhostuser require that the guest device be virtio, and
for interface type='vdpa', we already set <model type='virtio'/> if it
is unspecified in the input XML, so let's be just as courteous for
interface type='vhostuser'.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_postparse.c