Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
Snipped heavily; the full patch can be retrieved from
https://github.com/andreabolognani/libvirt/tree/nested-hv
.../caps_3.1.0.ppc64.replies | 23503 ++++++++++++++++
.../qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1075 +
tests/qemucapabilitiestest.c | 1 +
.../qemucaps2xmloutdata/caps_3.1.0.ppc64.xml | 26 +
tests/qemucaps2xmltest.c | 1 +
5 files changed, 24606 insertions(+)
create mode 100644 tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
create mode 100644 tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
create mode 100644 tests/qemucaps2xmloutdata/caps_3.1.0.ppc64.xml
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
new file mode 100644
index 0000000000..5f57a3bb18
--- /dev/null
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
@@ -0,0 +1,23503 @@
+{
+ "execute": "qmp_capabilities",
+ "id": "libvirt-1"
+}
+
+{
+ "return": {
+ },
+ "id": "libvirt-1"
+}
+
+{
+ "execute": "query-version",
+ "id": "libvirt-2"
+}
+
+{
+ "return": {
+ "qemu": {
+ "micro": 91,
+ "minor": 0,
+ "major": 3
+ },
+ "package": "v3.1.0-rc1-74-g3c035a41dc"
+ },
+ "id": "libvirt-2"
+}
[...]
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
new file mode 100644
index 0000000000..e3e1b6b281
--- /dev/null
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
@@ -0,0 +1,1075 @@
+<qemuCaps>
[...]
+ <version>3000091</version>
+ <kvmVersion>0</kvmVersion>
+ <microcodeVersion>437731</microcodeVersion>
+ <package>v3.1.0-rc1-74-g3c035a41dc</package>
+ <arch>ppc64</arch>
[...]
diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c
index 8fe5a55e1d..ff7e9601a2 100644
--- a/tests/qemucapabilitiestest.c
+++ b/tests/qemucapabilitiestest.c
@@ -186,6 +186,7 @@ mymain(void)
DO_TEST("ppc64", "caps_2.10.0");
DO_TEST("ppc64", "caps_2.12.0");
DO_TEST("ppc64", "caps_3.0.0");
+ DO_TEST("ppc64", "caps_3.1.0");
DO_TEST("s390x", "caps_2.7.0");
DO_TEST("s390x", "caps_2.8.0");
DO_TEST("s390x", "caps_2.9.0");
diff --git a/tests/qemucaps2xmloutdata/caps_3.1.0.ppc64.xml
b/tests/qemucaps2xmloutdata/caps_3.1.0.ppc64.xml
new file mode 100644
index 0000000000..85623f3980
--- /dev/null
+++ b/tests/qemucaps2xmloutdata/caps_3.1.0.ppc64.xml
@@ -0,0 +1,26 @@
+<capabilities>
+
+ <host>
+ <cpu>
+ <arch>ppc64</arch>
+ </cpu>
+ <power_management/>
+ <iommu support='no'/>
+ </host>
+
+ <guest>
+ <os_type>hvm</os_type>
+ <arch name='ppc64'>
+ <wordsize>64</wordsize>
+ <emulator>/usr/bin/qemu-system-ppc64</emulator>
+ <domain type='qemu'/>
+ <domain type='kvm'/>
+ </arch>
+ <features>
+ <cpuselection/>
+ <deviceboot/>
+ <disksnapshot default='on' toggle='no'/>
+ </features>
+ </guest>
+
+</capabilities>
diff --git a/tests/qemucaps2xmltest.c b/tests/qemucaps2xmltest.c
index 883909a973..3688c4a3b4 100644
--- a/tests/qemucaps2xmltest.c
+++ b/tests/qemucaps2xmltest.c
@@ -208,6 +208,7 @@ mymain(void)
DO_TEST("ppc64", "caps_2.10.0");
DO_TEST("ppc64", "caps_2.12.0");
DO_TEST("ppc64", "caps_3.0.0");
+ DO_TEST("ppc64", "caps_3.1.0");
DO_TEST("s390x", "caps_2.7.0");
DO_TEST("s390x", "caps_2.8.0");
DO_TEST("s390x", "caps_2.9.0");
--
2.19.1