]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Partially convert to net model enum
authorCole Robinson <crobinso@redhat.com>
Fri, 18 Jan 2019 14:59:02 +0000 (09:59 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 16 Apr 2019 17:11:08 +0000 (13:11 -0400)
commit41b002f934a22a6875a9bda3e41fca40029c4f3e
treeebdfad54830601e8152cd089ab0fd80cfb7f351a
parentc0cf17c280bb5cce69aed0828af6a3633b9a2dd5
qemu: Partially convert to net model enum

This converts the qemu driver to the net model enum, for all
the model values that we have hardcoded for various checks,
which adds e1000e, virtio-transitional, virtio-non-transitional,
usb-net, spapr-vlan, lan9118, smc91c111

Because the qemu driver has historically also allowed the raw
model string onto the qemu command line, this isn't a full
conversion. Unwinding that will require more thought. However
for all new driver code we should be adding explicit enum
values for any model name we have special handling for.

Remove the now unused virDomainNetStreqModelString

Acked-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c