Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
launch-libvirt: add virtio-net via the standard <interface> element
Starting with version 3.8.0, libvirt allows us to specify the network address and network mask (as prefix) for SLIRP directly via the <interface> element in the domain XML: <https://libvirt.org/formatdomain.html#userspace-slirp-stack>. This means we don't need the <qemu:commandline> hack for virtio-net on such versions. Restrict the hack in construct_libvirt_xml_qemu_cmdline() to libvirt<3.8.0, and generate the proper <interface> element in construct_libvirt_xml_devices() on libvirt>=3.8.0. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2034160 Suggested-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20211223103701.12702-4-lersek@redhat.com> Reviewed-by: Richard W.M. Jones <rjones@redhat.com> Tested-by: Richard W.M. Jones <rjones@redhat.com>
- Loading branch information