mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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>
7 lines
194 B
XML
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>
|