]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemu: add kvm-pv-ipi off test
authorzhenwei pi <pizhenwei@bytedance.com>
Tue, 2 Nov 2021 06:27:51 +0000 (14:27 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Nov 2021 08:23:53 +0000 (09:23 +0100)
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@bytedance.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxml2argvdata/kvm-features-off.args
tests/qemuxml2argvdata/kvm-features-off.xml
tests/qemuxml2argvdata/kvm-features.xml
tests/qemuxml2xmloutdata/kvm-features-off.xml
tests/qemuxml2xmloutdata/kvm-features.xml

index f7133bc0c3c5024a721e83bf2ffb8bec8bbf5dbf..f9962f68e744dfbf6ec3195a744bc60ff3c26607 100644 (file)
@@ -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 \
index 7871698f0671bf7ec059615d37ea0d5cdb71d7d5..a1004a206b982d96941afa92dfda3ad3dd2f6c29 100644 (file)
@@ -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'/>
index a5159254c699041861bacebb5128de6c230e526f..51229a6c373190fa4e59a4b13ef65269a06aca57 100644 (file)
@@ -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'/>
index 9c176190a50a8ffe59772cc4c3e1498941569eea..52a0ef00656a276fa1e6a2f05e211ffdeaff5ecb 100644 (file)
@@ -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'/>
index 88ee48c873f6da841a3e106592d7e2b65896d7fd..72e66fcbf524ea3ccd10f00a5cb2075971334422 100644 (file)
@@ -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'/>