mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
With qemu versions prior to qemu-5.0 we'll format 'scsi=off' for virtio-blk disks, but also for vhost-user-blk. This is a bug as it's not supported. Add a test case to show that wrong configuration is generated by adding running 'disk-vhostuser' test case on capabilities from qemu-4.2. For this to be possible it's required to enable shared memory via NUMA configuration as old QEMU's don't allow configuration of the default memory backend. This is achieved by adding a copy of the 'disk-vhostuser' XML with NUMA enabled. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
33 lines
1.0 KiB
XML
33 lines
1.0 KiB
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>219136</memory>
|
|
<currentMemory unit='KiB'>219136</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<cpu mode='custom' match='exact' check='none'>
|
|
<model fallback='forbid'>qemu64</model>
|
|
<numa>
|
|
<cell id='0' cpus='0' memory='14680064' unit='KiB' memAccess='shared'/>
|
|
</numa>
|
|
</cpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
</os>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk type='vhostuser' device='disk'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source type='unix' path='/tmp/vhost1.sock'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<boot order='1'/>
|
|
</disk>
|
|
<disk type='vhostuser' device='disk'>
|
|
<driver name='qemu' type='raw' iommu='on' ats='on' packed='on'/>
|
|
<source type='unix' path='/tmp/vhost1.sock'>
|
|
<reconnect enabled='yes' timeout='10'/>
|
|
</source>
|
|
<target dev='vdb' bus='virtio'/>
|
|
</disk>
|
|
</devices>
|
|
</domain>
|