[PATCH 6/7] qemustatusxml2xmltest: Add test data for testing '<origstates>' of PCI hostdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The <origstates> XML element captures private data of a PCI device
needed to restore it after a VM is started. Unfortunately at the point
when it was added we didn't yet have the existing private data
infrastructure.

Since the element is parsed only in cases similar to the status XML we
need to test it there.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/qemustatusxml2xmldata/modern-in.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/qemustatusxml2xmldata/modern-in.xml b/tests/qemustatusxml2xmldata/modern-in.xml
index f5beab722b..cdab1d7178 100644
--- a/tests/qemustatusxml2xmldata/modern-in.xml
+++ b/tests/qemustatusxml2xmldata/modern-in.xml
@@ -483,6 +483,18 @@
         <alias name='hostdev0'/>
         <address type='drive' controller='0' bus='0' target='2' unit='4'/>
       </hostdev>
+      <hostdev mode='subsystem' type='pci' managed='yes'>
+        <driver name='vfio'/>
+        <source>
+          <address domain='0x0005' bus='0x90' slot='0x01' function='0x2'/>
+          <origstates>
+            <unbind/>
+            <removeslot/>
+            <reprobe/>
+          </origstates>
+        </source>
+        <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
+      </hostdev>
       <redirdev bus='usb' type='spicevmc'>
         <alias name='redir0'/>
         <address type='usb' bus='0' port='2'/>
-- 
2.39.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux