Re: [PATCH v2 08/29] tests: add basic PowerNV8 test

2022-02-21 Thread Ján Tomko

On a Tuesday in 2022, Daniel Henrique Barboza wrote:

We're now able to boot a simple PowerNV8 domain in Libvirt.



*libvirt


Signed-off-by: Daniel Henrique Barboza 
---
.../powernv8-basic.ppc64-latest.args  | 33 +++
tests/qemuxml2argvdata/powernv8-basic.xml | 16 +
tests/qemuxml2argvtest.c  |  2 ++
.../powernv8-basic.ppc64-latest.xml   | 31 +
tests/qemuxml2xmltest.c   |  2 ++
5 files changed, 84 insertions(+)
create mode 100644 tests/qemuxml2argvdata/powernv8-basic.ppc64-latest.args
create mode 100644 tests/qemuxml2argvdata/powernv8-basic.xml
create mode 100644 tests/qemuxml2xmloutdata/powernv8-basic.ppc64-latest.xml



Reviewed-by: Ján Tomko 

Jano


signature.asc
Description: PGP signature


[PATCH v2 08/29] tests: add basic PowerNV8 test

2022-01-25 Thread Daniel Henrique Barboza
We're now able to boot a simple PowerNV8 domain in Libvirt.

Signed-off-by: Daniel Henrique Barboza 
---
 .../powernv8-basic.ppc64-latest.args  | 33 +++
 tests/qemuxml2argvdata/powernv8-basic.xml | 16 +
 tests/qemuxml2argvtest.c  |  2 ++
 .../powernv8-basic.ppc64-latest.xml   | 31 +
 tests/qemuxml2xmltest.c   |  2 ++
 5 files changed, 84 insertions(+)
 create mode 100644 tests/qemuxml2argvdata/powernv8-basic.ppc64-latest.args
 create mode 100644 tests/qemuxml2argvdata/powernv8-basic.xml
 create mode 100644 tests/qemuxml2xmloutdata/powernv8-basic.ppc64-latest.xml

diff --git a/tests/qemuxml2argvdata/powernv8-basic.ppc64-latest.args 
b/tests/qemuxml2argvdata/powernv8-basic.ppc64-latest.args
new file mode 100644
index 00..c9616ded13
--- /dev/null
+++ b/tests/qemuxml2argvdata/powernv8-basic.ppc64-latest.args
@@ -0,0 +1,33 @@
+LC_ALL=C \
+PATH=/bin \
+HOME=/tmp/lib/domain--1-QEMUGuest1 \
+USER=test \
+LOGNAME=test \
+XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
+XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
+XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
+/usr/bin/qemu-system-ppc64 \
+-name guest=QEMUGuest1,debug-threads=on \
+-S \
+-object 
'{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tmp/lib/domain--1-QEMUGuest1/master-key.aes"}'
 \
+-machine powernv8,usb=off,dump-guest-core=off,memory-backend=pnv.ram \
+-accel tcg \
+-cpu POWER8 \
+-m 2048 \
+-object '{"qom-type":"memory-backend-ram","id":"pnv.ram","size":2147483648}' \
+-overcommit mem-lock=off \
+-smp 1,sockets=1,cores=1,threads=1 \
+-uuid b20fcfe3-4a0a-4039-8735-9e024256e0f7 \
+-display none \
+-no-user-config \
+-nodefaults \
+-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \
+-mon chardev=charmonitor,id=monitor,mode=control \
+-rtc base=utc \
+-no-shutdown \
+-boot strict=on \
+-usb \
+-chardev pty,id=charserial0 \
+-device 
'{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
+-audiodev '{"id":"audio1","driver":"none"}' \
+-msg timestamp=on
diff --git a/tests/qemuxml2argvdata/powernv8-basic.xml 
b/tests/qemuxml2argvdata/powernv8-basic.xml
new file mode 100644
index 00..a92fc1282c
--- /dev/null
+++ b/tests/qemuxml2argvdata/powernv8-basic.xml
@@ -0,0 +1,16 @@
+
+  QEMUGuest1
+  b20fcfe3-4a0a-4039-8735-9e024256e0f7
+  2097152
+  1
+  
+hvm
+  
+  
+/usr/bin/qemu-system-ppc64
+
+
+  
+
+  
+
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 96d30f2475..de5582a52c 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2242,6 +2242,8 @@ mymain(void)
 DO_TEST_PARSE_ERROR_NOCAPS("seclabel-multiple");
 DO_TEST_PARSE_ERROR_NOCAPS("seclabel-device-duplicates");
 
+DO_TEST_CAPS_ARCH_LATEST("powernv8-basic", "ppc64");
+
 DO_TEST("pseries-basic",
 QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
 QEMU_CAPS_DEVICE_SPAPR_VTY);
diff --git a/tests/qemuxml2xmloutdata/powernv8-basic.ppc64-latest.xml 
b/tests/qemuxml2xmloutdata/powernv8-basic.ppc64-latest.xml
new file mode 100644
index 00..cb9b3cf86f
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/powernv8-basic.ppc64-latest.xml
@@ -0,0 +1,31 @@
+
+  QEMUGuest1
+  b20fcfe3-4a0a-4039-8735-9e024256e0f7
+  2097152
+  2097152
+  1
+  
+hvm
+
+  
+  
+POWER8
+  
+  
+  destroy
+  restart
+  destroy
+  
+/usr/bin/qemu-system-ppc64
+
+
+  
+
+  
+
+
+  
+
+
+  
+
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index 935fd955f4..1815d9ac1d 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -662,6 +662,8 @@ mymain(void)
 QEMU_CAPS_OBJECT_RNG_EGD);
 DO_TEST_CAPS_LATEST("virtio-rng-builtin");
 
+DO_TEST_CAPS_ARCH_LATEST("powernv8-basic", "ppc64");
+
 DO_TEST("pseries-nvram",
 QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
 QEMU_CAPS_DEVICE_NVRAM);
-- 
2.34.1