mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: add XML for input device passthrough
Add xml for the new virtio-input-host-pci device: <input type='passthrough' bus='virtio'> <source evdev='/dev/input/event1234'/> </input> https://bugzilla.redhat.com/show_bug.cgi?id=1231114
This commit is contained in:
@@ -4804,14 +4804,18 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
<input type='mouse' bus='virtio'/>
|
||||
<input type='keyboard' bus='virtio'/>
|
||||
<input type='tablet' bus='virtio'/>
|
||||
<input type='passthrough' bus='virtio'>
|
||||
<source evdev='/dev/input/event1/>
|
||||
</input>
|
||||
</devices>
|
||||
...</pre>
|
||||
|
||||
<dl>
|
||||
<dt><code>input</code></dt>
|
||||
<dd>The <code>input</code> element has one mandatory attribute,
|
||||
the <code>type</code> whose value can be 'mouse', 'tablet' or
|
||||
(<span class="since">since 1.2.2</span>) 'keyboard'.
|
||||
the <code>type</code> whose value can be 'mouse', 'tablet',
|
||||
(<span class="since">since 1.2.2</span>) 'keyboard' or
|
||||
(<span class="since">since 1.3.0</span>) 'passthrough'.
|
||||
The tablet provides absolute cursor movement,
|
||||
while the mouse uses relative movement. The optional
|
||||
<code>bus</code> attribute can be used to refine the exact device type.
|
||||
@@ -4824,6 +4828,10 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
sub-element <code><address></code> which can tie the
|
||||
device to a particular PCI
|
||||
slot, <a href="#elementsAddress">documented above</a>.
|
||||
|
||||
For type <code>passthrough</code>, the mandatory sub-element <code>source</code>
|
||||
must have an <code>evdev</code> attribute containing the absolute path to the
|
||||
event device passed through to guests. (KVM only)
|
||||
</p>
|
||||
|
||||
<h4><a name="elementsHub">Hub devices</a></h4>
|
||||
|
||||
@@ -3579,23 +3579,40 @@
|
||||
|
||||
<define name="input">
|
||||
<element name="input">
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
<value>tablet</value>
|
||||
<value>mouse</value>
|
||||
<value>keyboard</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="bus">
|
||||
<choice>
|
||||
<value>ps2</value>
|
||||
<value>usb</value>
|
||||
<value>xen</value>
|
||||
<choice>
|
||||
<group>
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
<value>tablet</value>
|
||||
<value>mouse</value>
|
||||
<value>keyboard</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="bus">
|
||||
<choice>
|
||||
<value>ps2</value>
|
||||
<value>usb</value>
|
||||
<value>xen</value>
|
||||
<value>virtio</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
</group>
|
||||
<group>
|
||||
<attribute name="type">
|
||||
<value>passthrough</value>
|
||||
</attribute>
|
||||
<attribute name="bus">
|
||||
<value>virtio</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
</attribute>
|
||||
<element name="source">
|
||||
<attribute name="evdev">
|
||||
<ref name="absFilePath"/>
|
||||
</attribute>
|
||||
</element>
|
||||
</group>
|
||||
</choice>
|
||||
<optional>
|
||||
<ref name="alias"/>
|
||||
</optional>
|
||||
|
||||
Reference in New Issue
Block a user