]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Assume QEMU_CAPS_VIRTIO_NET_HOST_MTU
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Nov 2022 14:12:09 +0000 (15:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Nov 2022 11:10:50 +0000 (12:10 +0100)
commit2eab78d5f57cc5376ce009c46b0e6c4ca8d727f0
tree373159291c2ee79b45a5f199aa005f401f6cb5eb
parentc0896a2e80a1afefa54cea618be2690ff6537557
qemu: Assume QEMU_CAPS_VIRTIO_NET_HOST_MTU

Introduced in QEMU's commit of v2.9.0-rc0~162^2~10 the .host_mtu
attribute of virtio-net device is always available for all QEMU
versions we support (4.2.0, currently). Therefore, we can assume
the capability is always set and thus doesn't need to be checked
for.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2xmltest.c