tests: add tests for kvm-hint-dedicated feature

Update the KVM feature tests for QEMU's kvm-hint-dedicated
performance hint.

Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
Signed-off-by: Menno Lageman <menno.lageman@oracle.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Wim ten Have 2019-08-12 14:30:30 +02:00 committed by Michal Privoznik
parent cb12c59dac
commit 63b2e57cb3
5 changed files with 10 additions and 4 deletions

View File

@ -12,6 +12,7 @@
<acpi/>
<kvm>
<hidden state='off'/>
<hint-dedicated state='off'/>
</kvm>
</features>
<clock offset='utc'/>

View File

@ -10,8 +10,8 @@ QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-i686 \
-name QEMUGuest1 \
-S \
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
-cpu qemu32,kvm=off \
-machine pc,accel=kvm,usb=off,dump-guest-core=off \
-cpu host,kvm=off,kvm-hint-dedicated=on \
-m 214 \
-realtime mlock=off \
-smp 6,sockets=6,cores=1,threads=1 \

View File

@ -1,4 +1,4 @@
<domain type='qemu'>
<domain type='kvm'>
<name>QEMUGuest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory unit='KiB'>219100</memory>
@ -12,8 +12,10 @@
<acpi/>
<kvm>
<hidden state='on'/>
<hint-dedicated state='on'/>
</kvm>
</features>
<cpu mode='host-passthrough' check='none'/>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>

View File

@ -12,6 +12,7 @@
<acpi/>
<kvm>
<hidden state='off'/>
<hint-dedicated state='off'/>
</kvm>
</features>
<clock offset='utc'/>

View File

@ -1,4 +1,4 @@
<domain type='qemu'>
<domain type='kvm'>
<name>QEMUGuest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory unit='KiB'>219100</memory>
@ -12,8 +12,10 @@
<acpi/>
<kvm>
<hidden state='on'/>
<hint-dedicated state='on'/>
</kvm>
</features>
<cpu mode='host-passthrough' check='none'/>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>