libvirt/tests/networkxml2xmlout
Laine Stump d64e114f14 network: support <driver name='vfio'/> in network definitions
I remembered to document this bit, but somehow forgot to implement it.

This adds <driver name='kvm|vfio'/> as a subelement to the <forward>
element of a network (this puts it parallel to the match between
mode='hostdev' attribute in a network and type='hostdev' in an
<interface>).

Since it's already documented, only the parser, formatter, backend
driver recognition (it just translates/moves the flag into the
<interface> at the appropriate time), and a test case were needed.

(I used a separate enum for the values both because the original is
defined in domain_conf.h, which is unavailable from network_conf.h,
and because in the future it's possible that we may want to support
other non-hostdev oriented driver names in the network parser; this
makes sure that one can be expanded without the other).
2013-04-26 21:51:12 -04:00
..
8021Qbh-net.xml conf: add <vlan> element to network and domain interface elements 2012-08-15 13:10:57 -04:00
bandwidth-network.xml util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
dhcp6host-routed-network.xml util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
direct-net.xml conf: support abstracted interface info in network XML 2011-07-21 14:46:53 -04:00
empty-allow-ipv6.xml util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
host-bridge-net.xml conf: support abstracted interface info in network XML 2011-07-21 14:46:53 -04:00
hostdev-pf.xml network: support <driver name='vfio'/> in network definitions 2013-04-26 21:51:12 -04:00
hostdev.xml conf: parser/formatter/rng for <forward mode='hostdev'> 2012-08-17 15:43:26 -04:00
isolated-network.xml util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
nat-network-dns-hosts.xml conf: support abstracted interface info in network XML 2011-07-21 14:46:53 -04:00
nat-network-dns-srv-record-minimal.xml Implement DNS SRV record into the bridge driver 2012-01-02 23:05:55 +08:00
nat-network-dns-srv-record.xml Implement DNS SRV record into the bridge driver 2012-01-02 23:05:55 +08:00
nat-network-dns-txt-record.xml conf: support abstracted interface info in network XML 2011-07-21 14:46:53 -04:00
nat-network.xml conf: support abstracted interface info in network XML 2011-07-21 14:46:53 -04:00
netboot-network.xml Revert "Add support for <option> tag in network config" 2013-02-27 10:55:24 -05:00
netboot-proxy-network.xml Revert "Add support for <option> tag in network config" 2013-02-27 10:55:24 -05:00
openvswitch-net.xml conf: add <vlan> element to network and domain interface elements 2012-08-15 13:10:57 -04:00
passthrough-pf.xml Adding the element pf to network xml. 2012-01-11 13:10:21 -07:00
routed-network.xml util: Change virMacAddrFormat to lowercase hex characters 2013-04-02 15:53:43 +02:00
vepa-net.xml conf: support partially-specified <virtualport> in parser and formatter 2012-08-14 15:47:50 -04:00