]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: add tests for kvm-hint-dedicated feature
authorWim ten Have <wim.ten.have@oracle.com>
Mon, 12 Aug 2019 12:30:30 +0000 (14:30 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Aug 2019 13:13:36 +0000 (15:13 +0200)
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>
tests/qemuxml2argvdata/kvm-features-off.xml
tests/qemuxml2argvdata/kvm-features.args
tests/qemuxml2argvdata/kvm-features.xml
tests/qemuxml2xmloutdata/kvm-features-off.xml
tests/qemuxml2xmloutdata/kvm-features.xml

index e893f9343754c8c00894876d36d36617bfae54fb..ab2c16202c3d3c15be97d04760001ecb16608cdb 100644 (file)
@@ -12,6 +12,7 @@
     <acpi/>
     <kvm>
       <hidden state='off'/>
+      <hint-dedicated state='off'/>
     </kvm>
   </features>
   <clock offset='utc'/>
index 55d2b8be02ea56cdc743c3275943031eda3c2f47..8372ca897d8dae2f8bb1ad3f32cc4eebba1e68f3 100644 (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 \
index 68bdee42bacfffdb3c1d78c611ed661d1daf40de..b942e89a928061aebe2b67dab9d3c114e8f9aaec 100644 (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>
     <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>
index b355061c5b01eb687a5eb2b028a78633c0a11ead..a0ef9c7e9e15ddb14fa8651eeda6a114d89de07c 100644 (file)
@@ -12,6 +12,7 @@
     <acpi/>
     <kvm>
       <hidden state='off'/>
+      <hint-dedicated state='off'/>
     </kvm>
   </features>
   <clock offset='utc'/>
index 544b9d8607551b316348aa134e1cbd9d60903fd5..b6f16ced1dab4e97abfe0f3be29e3a6c881ec1e7 100644 (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>
     <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>