Files
libvirt/tests/qemuhotplugtestdevices/qemuhotplug-interface-hostdev.xml
T
Michal Privoznik f9bb819fc4 qemuhotplugtest: Introduce interface-hostdev test case
While our qemuhotplugtest already does a PCI hotplug and unlpug
("hostdev-pci") there is another way to hotplug a PCI device,
esp. if it's a NIC: <interface type='hostdev'/>. This has been
missing and as shown in v12.1.0-rc1-4-gfe782ed334 can be
potentially dangerous as some different paths are taken.
Introduce a test case for interface-hostdev.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
2026-03-09 13:13:47 +01:00

7 lines
194 B
XML

<interface type='hostdev' managed='yes'>
<source>
<address type='pci' domain='0x0000' bus='0x06' slot='0x12' function='0x2'/>
</source>
<mac address='52:54:00:6d:90:02'/>
</interface>