libvirt/tests/qemuxmlconfdata/mtp-usb-device.xml
Rayhan Faizel c836887a02 qemu_command: Generate command line for MTP filesystem
The source tag sets the rootdir property of the device, which is
the directory exposed to the guest via the MTP device. The target
tag sets the desc property.  This device supports read-only mode
as well. Like virtiofs, it does not support additional access
modes.

Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2024-03-19 17:36:19 +01:00

28 lines
797 B
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>2d4d4b20-b19b-4713-af0a-bf1cab8b455b</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<controller type='usb' index='0' model='piix3-uhci'/>
<filesystem type='mount'>
<driver type='mtp'/>
<source dir='/tmp/testdir1'/>
<target dir='readwrite-fs'/>
</filesystem>
<filesystem type='mount'>
<driver type='mtp'/>
<source dir='/tmp/testdir2'/>
<target dir='readonly-fs'/>
<readonly/>
</filesystem>
<memballoon model='virtio'/>
</devices>
</domain>