tests: qemu: add kvm-pv-ipi off test

Since b2757b697e
(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>
This commit is contained in:
zhenwei pi 2021-11-02 14:27:51 +08:00 committed by Michal Privoznik
parent 4c54af1c93
commit 74447e404d
5 changed files with 5 additions and 1 deletions

View 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 \

View 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'/>

View 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'/>

View 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'/>

View 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'/>