[PATCH 2/2] tests: qemu: add kvm-pv-ipi off test

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

 



Since b2757b697e29fa86972a4638a5879dccc8add2ad
(qemu: support kvm-pv-ipi off), libvirt supports xml definition like:

      <features>
        <kvm>
          <pv-ipi state='off'/>
        </kvm>
      </features>

Add test case for this feature.

Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx>
---
 tests/qemuxml2argvdata/kvm-features-off.args  | 2 +-
 tests/qemuxml2argvdata/kvm-features-off.xml   | 1 +
 tests/qemuxml2argvdata/kvm-features.xml       | 1 +
 tests/qemuxml2xmloutdata/kvm-features-off.xml | 1 +
 tests/qemuxml2xmloutdata/kvm-features.xml     | 1 +
 5 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/qemuxml2argvdata/kvm-features-off.args b/tests/qemuxml2argvdata/kvm-features-off.args
index f7133bc0c3..f9962f68e7 100644
--- a/tests/qemuxml2argvdata/kvm-features-off.args
+++ b/tests/qemuxml2argvdata/kvm-features-off.args
@@ -12,7 +12,7 @@ QEMU_AUDIO_DRV=none \
 -S \
 -object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
 -machine pc,accel=kvm,usb=off,dump-guest-core=off \
--cpu host \
+-cpu host,kvm-pv-ipi=off \
 -m 214 \
 -realtime mlock=off \
 -smp 6,sockets=6,cores=1,threads=1 \
diff --git a/tests/qemuxml2argvdata/kvm-features-off.xml b/tests/qemuxml2argvdata/kvm-features-off.xml
index 7871698f06..a1004a206b 100644
--- a/tests/qemuxml2argvdata/kvm-features-off.xml
+++ b/tests/qemuxml2argvdata/kvm-features-off.xml
@@ -14,6 +14,7 @@
       <hidden state='off'/>
       <hint-dedicated state='off'/>
       <poll-control state='off'/>
+      <pv-ipi state='off'/>
     </kvm>
   </features>
   <cpu mode='host-passthrough' check='none'/>
diff --git a/tests/qemuxml2argvdata/kvm-features.xml b/tests/qemuxml2argvdata/kvm-features.xml
index a5159254c6..51229a6c37 100644
--- a/tests/qemuxml2argvdata/kvm-features.xml
+++ b/tests/qemuxml2argvdata/kvm-features.xml
@@ -14,6 +14,7 @@
       <hidden state='on'/>
       <hint-dedicated state='on'/>
       <poll-control state='on'/>
+      <pv-ipi state='on'/>
     </kvm>
   </features>
   <cpu mode='host-passthrough' check='none'/>
diff --git a/tests/qemuxml2xmloutdata/kvm-features-off.xml b/tests/qemuxml2xmloutdata/kvm-features-off.xml
index 9c176190a5..52a0ef0065 100644
--- a/tests/qemuxml2xmloutdata/kvm-features-off.xml
+++ b/tests/qemuxml2xmloutdata/kvm-features-off.xml
@@ -14,6 +14,7 @@
       <hidden state='off'/>
       <hint-dedicated state='off'/>
       <poll-control state='off'/>
+      <pv-ipi state='off'/>
     </kvm>
   </features>
   <cpu mode='host-passthrough' check='none' migratable='off'/>
diff --git a/tests/qemuxml2xmloutdata/kvm-features.xml b/tests/qemuxml2xmloutdata/kvm-features.xml
index 88ee48c873..72e66fcbf5 100644
--- a/tests/qemuxml2xmloutdata/kvm-features.xml
+++ b/tests/qemuxml2xmloutdata/kvm-features.xml
@@ -14,6 +14,7 @@
       <hidden state='on'/>
       <hint-dedicated state='on'/>
       <poll-control state='on'/>
+      <pv-ipi state='on'/>
     </kvm>
   </features>
   <cpu mode='host-passthrough' check='none' migratable='off'/>
-- 
2.25.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