]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Record the default NIC model in the domain XML
authorPeter Krempa <pkrempa@redhat.com>
Tue, 19 Feb 2013 16:33:52 +0000 (17:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Apr 2013 20:41:20 +0000 (22:41 +0200)
commita68d6726679323823ee5be47f0144e9ccffa0757
treeed3b5e1449ed7f821d264264e236d23ef085886f
parentad0d10b2b1977ab482107bce36922e402555acb4
qemu: Record the default NIC model in the domain XML

This patch implements the devices post parse callback and uses it to fill
the default qemu network card model into the XML if none is specified.

Libvirt assumes that the network card model for qemu is the "rtl8139".
Record this in the XML using the new callback to avoid user
confusion.
18 files changed:
src/qemu/qemu_conf.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
tests/qemuxml2argvdata/qemuxml2argv-net-bandwidth.xml
tests/qemuxml2argvdata/qemuxml2argv-net-client.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth-ifname.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth-ifname.xml
tests/qemuxml2argvdata/qemuxml2argv-net-eth-names.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth.xml
tests/qemuxml2argvdata/qemuxml2argv-net-hostdev.xml
tests/qemuxml2argvdata/qemuxml2argv-net-mcast.args
tests/qemuxml2argvdata/qemuxml2argv-net-openvswitch.xml
tests/qemuxml2argvdata/qemuxml2argv-net-server.args
tests/qemuxml2argvdata/qemuxml2argv-net-user.args
tests/qemuxml2argvdata/qemuxml2argv-net-user.xml
tests/qemuxml2argvdata/qemuxml2argv-net-virtio-network-portgroup.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-timeout.xml