|
Pablo Greco |
40546a |
From 7e23f06327869c9dad50ae98da10292356eb5f0f Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <7e23f06327869c9dad50ae98da10292356eb5f0f@dist-git>
|
|
Pablo Greco |
40546a |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Fri, 15 Nov 2019 17:52:33 +0100
|
|
Pablo Greco |
40546a |
Subject: [PATCH] qemuxml2*test: Add tests for Icelake-Server, -pconfig
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit ae793ecbcbd17b118ef3a876d247abb49574ab0e)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1749672
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1756156
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1721608
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Conflicts:
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvtest.c
|
|
Pablo Greco |
40546a |
- several new tests upstream
|
|
Pablo Greco |
40546a |
- test case for QEMU 3.1.0 dropped; caps data are missing
|
|
Pablo Greco |
40546a |
downstream and the case is not important here
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.args
|
|
Pablo Greco |
40546a |
- test case for QEMU 3.1.0 dropped; caps data are missing
|
|
Pablo Greco |
40546a |
downstream and the case is not important here
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args
|
|
Pablo Greco |
40546a |
- downstream generates slightly different command line
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.xml
|
|
Pablo Greco |
40546a |
tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-latest.xml
|
|
Pablo Greco |
40546a |
tests/qemuxml2xmltest.c
|
|
Pablo Greco |
40546a |
- missing DO_TEST_CAPS_* macros; the change to this test was
|
|
Pablo Greco |
40546a |
dropped as it is not as important as the xml2argv test
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <8cbd8a44446d77a2699ca267b696cfbd05dc8bc3.1573836581.git.jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
...-Icelake-Server-pconfig.x86_64-latest.args | 31 +++++++++++++++++++
|
|
Pablo Greco |
40546a |
.../cpu-Icelake-Server-pconfig.xml | 22 +++++++++++++
|
|
Pablo Greco |
40546a |
tests/qemuxml2argvtest.c | 2 ++
|
|
Pablo Greco |
40546a |
3 files changed, 55 insertions(+)
|
|
Pablo Greco |
40546a |
create mode 100644 tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args
|
|
Pablo Greco |
40546a |
create mode 100644 tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.xml
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args
|
|
Pablo Greco |
40546a |
new file mode 100644
|
|
Pablo Greco |
40546a |
index 0000000000..664db44e7b
|
|
Pablo Greco |
40546a |
--- /dev/null
|
|
Pablo Greco |
40546a |
+++ b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args
|
|
Pablo Greco |
40546a |
@@ -0,0 +1,31 @@
|
|
Pablo Greco |
40546a |
+LC_ALL=C \
|
|
Pablo Greco |
40546a |
+PATH=/bin \
|
|
Pablo Greco |
40546a |
+HOME=/home/test \
|
|
Pablo Greco |
40546a |
+USER=test \
|
|
Pablo Greco |
40546a |
+LOGNAME=test \
|
|
Pablo Greco |
40546a |
+QEMU_AUDIO_DRV=none \
|
|
Pablo Greco |
40546a |
+/usr/bin/qemu-system-x86_64 \
|
|
Pablo Greco |
40546a |
+-name guest=test,debug-threads=on \
|
|
Pablo Greco |
40546a |
+-S \
|
|
Pablo Greco |
40546a |
+-object secret,id=masterKey0,format=raw,\
|
|
Pablo Greco |
40546a |
+file=/tmp/lib/domain--1-test/master-key.aes \
|
|
Pablo Greco |
40546a |
+-machine pc,accel=kvm,usb=off,dump-guest-core=off \
|
|
Pablo Greco |
40546a |
+-cpu Icelake-Server,pconfig=off \
|
|
Pablo Greco |
40546a |
+-m 214 \
|
|
Pablo Greco |
40546a |
+-realtime mlock=off \
|
|
Pablo Greco |
40546a |
+-smp 1,sockets=1,cores=1,threads=1 \
|
|
Pablo Greco |
40546a |
+-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
Pablo Greco |
40546a |
+-display none \
|
|
Pablo Greco |
40546a |
+-no-user-config \
|
|
Pablo Greco |
40546a |
+-nodefaults \
|
|
Pablo Greco |
40546a |
+-chardev socket,id=charmonitor,fd=1729,server,nowait \
|
|
Pablo Greco |
40546a |
+-mon chardev=charmonitor,id=monitor,mode=control \
|
|
Pablo Greco |
40546a |
+-rtc base=utc \
|
|
Pablo Greco |
40546a |
+-no-shutdown \
|
|
Pablo Greco |
40546a |
+-no-acpi \
|
|
Pablo Greco |
40546a |
+-boot strict=on \
|
|
Pablo Greco |
40546a |
+-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
|
Pablo Greco |
40546a |
+-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \
|
|
Pablo Greco |
40546a |
+-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\
|
|
Pablo Greco |
40546a |
+resourcecontrol=deny \
|
|
Pablo Greco |
40546a |
+-msg timestamp=on
|
|
Pablo Greco |
40546a |
diff --git a/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.xml b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.xml
|
|
Pablo Greco |
40546a |
new file mode 100644
|
|
Pablo Greco |
40546a |
index 0000000000..ec64e1ee51
|
|
Pablo Greco |
40546a |
--- /dev/null
|
|
Pablo Greco |
40546a |
+++ b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.xml
|
|
Pablo Greco |
40546a |
@@ -0,0 +1,22 @@
|
|
Pablo Greco |
40546a |
+<domain type='kvm'>
|
|
Pablo Greco |
40546a |
+ <name>test</name>
|
|
Pablo Greco |
40546a |
+ <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
Pablo Greco |
40546a |
+ <memory unit='KiB'>219100</memory>
|
|
Pablo Greco |
40546a |
+ <currentMemory unit='KiB'>219100</currentMemory>
|
|
Pablo Greco |
40546a |
+ <vcpu placement='static'>1</vcpu>
|
|
Pablo Greco |
40546a |
+ <os>
|
|
Pablo Greco |
40546a |
+ <type arch='x86_64' machine='pc'>hvm</type>
|
|
Pablo Greco |
40546a |
+ <boot dev='network'/>
|
|
Pablo Greco |
40546a |
+ </os>
|
|
Pablo Greco |
40546a |
+ <cpu mode='custom' match='exact' check='none'>
|
|
Pablo Greco |
40546a |
+ <model fallback='forbid'>Icelake-Server</model>
|
|
Pablo Greco |
40546a |
+ <feature name='pconfig' policy='disable'/>
|
|
Pablo Greco |
40546a |
+ </cpu>
|
|
Pablo Greco |
40546a |
+ <clock offset='utc'/>
|
|
Pablo Greco |
40546a |
+ <on_poweroff>destroy</on_poweroff>
|
|
Pablo Greco |
40546a |
+ <on_reboot>restart</on_reboot>
|
|
Pablo Greco |
40546a |
+ <on_crash>destroy</on_crash>
|
|
Pablo Greco |
40546a |
+ <devices>
|
|
Pablo Greco |
40546a |
+ <emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
Pablo Greco |
40546a |
+ </devices>
|
|
Pablo Greco |
40546a |
+</domain>
|
|
Pablo Greco |
40546a |
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
|
|
Pablo Greco |
40546a |
index 03d6a60736..5aff9b6e37 100644
|
|
Pablo Greco |
40546a |
--- a/tests/qemuxml2argvtest.c
|
|
Pablo Greco |
40546a |
+++ b/tests/qemuxml2argvtest.c
|
|
Pablo Greco |
40546a |
@@ -3000,6 +3000,8 @@ mymain(void)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
DO_TEST_CAPS_VER("launch-security-sev", "2.12.0");
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
+ DO_TEST_CAPS_LATEST("cpu-Icelake-Server-pconfig");
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
|
|
Pablo Greco |
40546a |
virFileDeleteTree(fakerootdir);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.24.0
|
|
Pablo Greco |
40546a |
|