mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: add backend element to interfaces
For tuning the network, alternative devices for creating tap and vhost devices can be specified via: <backend tap='/dev/net/tun' vhost='/dev/net-vhost'/>
This commit is contained in:
@@ -3969,6 +3969,26 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h5><a name="elementsBackendOptions">Setting network backend-specific options</a></h5>
|
||||
|
||||
<pre>
|
||||
...
|
||||
<devices>
|
||||
<interface type='network'>
|
||||
<source network='default'/>
|
||||
<target dev='vnet1'/>
|
||||
<model type='virtio'/>
|
||||
<b><backend tap='/dev/net/tun' vhost='/dev/net-vhost'/></b>
|
||||
<driver name='vhost' txmode='iothread' ioeventfd='on' event_idx='off' queues='5'/>
|
||||
</interface>
|
||||
</devices>
|
||||
...</pre>
|
||||
|
||||
<p>
|
||||
For tuning the backend of the network, the <code>backend</code> element
|
||||
can be used. Supported attributes are <code>tap</code> and <code>vhost</code>,
|
||||
allowing to override the default devices for creating tap and vhost devices.
|
||||
</p>
|
||||
<h5><a name="elementsNICSTargetOverride">Overriding the target element</a></h5>
|
||||
|
||||
<pre>
|
||||
|
||||
@@ -2346,6 +2346,16 @@
|
||||
<empty/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="backend">
|
||||
<attribute name='tap'>
|
||||
<ref name='absFilePath'/>
|
||||
</attribute>
|
||||
<attribute name='vhost'>
|
||||
<ref name='absFilePath'/>
|
||||
</attribute>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="driver">
|
||||
<choice>
|
||||
|
||||
Reference in New Issue
Block a user