libvirt/tests/qemuxml2argvdata/pseries-hostdevs-1.xml
Laine Stump 956e1ca6aa tests: remove explicit <driver name='vfio'/> from hostdev test cases
The long-deprecated use of <driver name='vfio|xen|kvm'/> in domain xml
for <hostdev> devices was only ever necessary during the period when
libvirt (and the Linux kernel) supported both VFIO and "legacy KVM"
styles of hostdev device assignment for QEMU. This became pointless
many years ago when legacy KVM device assignment was removed from the
kernel, and support for that style of device assignment was completely
disabled in the libvirt source in 2019 (commit
v5.6.0-316-g2e7225ea8c).

Nevertheless, there were instances of <driver name='vfio'/> in the
unit test data that were then (unnecessarily) propagated to several
more tests over the years. This patch cleans out those unnecessary
explicit settings of driver name='vfio' in all QEMU unit test data,
proving that the attribute is no longer (externally) needed. (A later
patch which adds a 2nd attribute to the <driver> element will include
a test case that explicitly exercises the driver name attribute).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2024-01-07 23:59:00 -05:00

37 lines
1.3 KiB
XML

<domain type='qemu'>
<name>guest</name>
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
<memory unit='KiB'>524288</memory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='ppc64' machine='pseries'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-ppc64</emulator>
<!-- This hostdev will cause a new PHB to be created because its
isolation group is 1 (IOMMU group 0) -->
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
</source>
</hostdev>
<!-- This hostdev can't share the PHB that was just created, because
its isolation group is 2 (IOMMU group 1) -->
<interface type='hostdev' managed='yes'>
<source>
<address type='pci' domain='0x0005' bus='0x90' slot='0x01' function='0x0'/>
</source>
<mac address='52:54:00:6d:90:02'/>
</interface>
<!-- This hostdev will be placed on the first PHB, since its isolation
group is 1 (IOMMU group 0) just like the first hostdev -->
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0001' bus='0x01' slot='0x00' function='0x1'/>
</source>
</hostdev>
<controller type='usb' model='none'/>
<memballoon model='none'/>
</devices>
</domain>