|
|
6ae9ed |
From 577c3bb46c94384f4d5a5c8ae390cf52e2eae838 Mon Sep 17 00:00:00 2001
|
|
|
6ae9ed |
Message-Id: <577c3bb46c94384f4d5a5c8ae390cf52e2eae838@dist-git>
|
|
|
6ae9ed |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
6ae9ed |
Date: Wed, 24 Aug 2016 16:11:29 -0400
|
|
|
6ae9ed |
Subject: [PATCH] tests: cpu-hotplug: Add data for ppc64 without threads
|
|
|
6ae9ed |
enabled
|
|
|
6ae9ed |
|
|
|
6ae9ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1097930
|
|
|
6ae9ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1224341
|
|
|
6ae9ed |
|
|
|
6ae9ed |
The reported data is unusual so add it to the test suite.
|
|
|
6ae9ed |
|
|
|
6ae9ed |
(cherry picked from commit 04fce1d496a76fd8c422b4ee7021eba3f248a246)
|
|
|
6ae9ed |
---
|
|
|
6ae9ed |
...umonitorjson-cpuinfo-ppc64-no-threads-cpus.json | 77 +++++++++++++
|
|
|
6ae9ed |
...nitorjson-cpuinfo-ppc64-no-threads-hotplug.json | 125 +++++++++++++++++++++
|
|
|
6ae9ed |
.../qemumonitorjson-cpuinfo-ppc64-no-threads.data | 72 ++++++++++++
|
|
|
6ae9ed |
tests/qemumonitorjsontest.c | 1 +
|
|
|
6ae9ed |
4 files changed, 275 insertions(+)
|
|
|
6ae9ed |
create mode 100644 tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json
|
|
|
6ae9ed |
create mode 100644 tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-hotplug.json
|
|
|
6ae9ed |
create mode 100644 tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads.data
|
|
|
6ae9ed |
|
|
|
6ae9ed |
diff --git a/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json
|
|
|
6ae9ed |
new file mode 100644
|
|
|
6ae9ed |
index 0000000..31a3905
|
|
|
6ae9ed |
--- /dev/null
|
|
|
6ae9ed |
+++ b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json
|
|
|
6ae9ed |
@@ -0,0 +1,77 @@
|
|
|
6ae9ed |
+{
|
|
|
6ae9ed |
+ "return": [
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": true,
|
|
|
6ae9ed |
+ "CPU": 0,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[1]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35232
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 1,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[2]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35233
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 2,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[3]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35234
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 3,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[4]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35235
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 4,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[5]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35236
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 5,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[6]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35237
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 6,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[7]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35238
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "arch": "ppc",
|
|
|
6ae9ed |
+ "current": false,
|
|
|
6ae9ed |
+ "CPU": 7,
|
|
|
6ae9ed |
+ "nip": -4611686018426772876,
|
|
|
6ae9ed |
+ "qom_path": "/machine/unattached/device[8]/thread[0]",
|
|
|
6ae9ed |
+ "halted": false,
|
|
|
6ae9ed |
+ "thread_id": 35239
|
|
|
6ae9ed |
+ }
|
|
|
6ae9ed |
+ ],
|
|
|
6ae9ed |
+ "id": "libvirt-11"
|
|
|
6ae9ed |
+}
|
|
|
6ae9ed |
diff --git a/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-hotplug.json b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-hotplug.json
|
|
|
6ae9ed |
new file mode 100644
|
|
|
6ae9ed |
index 0000000..30785a9
|
|
|
6ae9ed |
--- /dev/null
|
|
|
6ae9ed |
+++ b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-hotplug.json
|
|
|
6ae9ed |
@@ -0,0 +1,125 @@
|
|
|
6ae9ed |
+{
|
|
|
6ae9ed |
+ "return": [
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 120
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 112
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 104
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 96
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 88
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 80
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 72
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 64
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 56
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[8]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 48
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[7]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 40
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[6]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 32
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[5]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 24
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[4]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 16
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[3]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 8
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[2]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ {
|
|
|
6ae9ed |
+ "props": {
|
|
|
6ae9ed |
+ "core-id": 0
|
|
|
6ae9ed |
+ },
|
|
|
6ae9ed |
+ "vcpus-count": 1,
|
|
|
6ae9ed |
+ "qom-path": "/machine/unattached/device[1]",
|
|
|
6ae9ed |
+ "type": "host-spapr-cpu-core"
|
|
|
6ae9ed |
+ }
|
|
|
6ae9ed |
+ ],
|
|
|
6ae9ed |
+ "id": "libvirt-12"
|
|
|
6ae9ed |
+}
|
|
|
6ae9ed |
diff --git a/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads.data b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads.data
|
|
|
6ae9ed |
new file mode 100644
|
|
|
6ae9ed |
index 0000000..d7ab77b
|
|
|
6ae9ed |
--- /dev/null
|
|
|
6ae9ed |
+++ b/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads.data
|
|
|
6ae9ed |
@@ -0,0 +1,72 @@
|
|
|
6ae9ed |
+[vcpu libvirt-id='0']
|
|
|
6ae9ed |
+ thread-id='35232'
|
|
|
6ae9ed |
+ qemu-id='1'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[1]'
|
|
|
6ae9ed |
+ topology: core='0' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='1']
|
|
|
6ae9ed |
+ thread-id='35233'
|
|
|
6ae9ed |
+ qemu-id='2'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[2]'
|
|
|
6ae9ed |
+ topology: core='8' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='2']
|
|
|
6ae9ed |
+ thread-id='35234'
|
|
|
6ae9ed |
+ qemu-id='3'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[3]'
|
|
|
6ae9ed |
+ topology: core='16' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='3']
|
|
|
6ae9ed |
+ thread-id='35235'
|
|
|
6ae9ed |
+ qemu-id='4'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[4]'
|
|
|
6ae9ed |
+ topology: core='24' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='4']
|
|
|
6ae9ed |
+ thread-id='35236'
|
|
|
6ae9ed |
+ qemu-id='5'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[5]'
|
|
|
6ae9ed |
+ topology: core='32' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='5']
|
|
|
6ae9ed |
+ thread-id='35237'
|
|
|
6ae9ed |
+ qemu-id='6'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[6]'
|
|
|
6ae9ed |
+ topology: core='40' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='6']
|
|
|
6ae9ed |
+ thread-id='35238'
|
|
|
6ae9ed |
+ qemu-id='7'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[7]'
|
|
|
6ae9ed |
+ topology: core='48' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='7']
|
|
|
6ae9ed |
+ thread-id='35239'
|
|
|
6ae9ed |
+ qemu-id='8'
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ qom_path='/machine/unattached/device[8]'
|
|
|
6ae9ed |
+ topology: core='56' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='8']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='64' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='9']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='72' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='10']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='80' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='11']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='88' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='12']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='96' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='13']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='104' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='14']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='112' vcpus='1'
|
|
|
6ae9ed |
+[vcpu libvirt-id='15']
|
|
|
6ae9ed |
+ type='host-spapr-cpu-core'
|
|
|
6ae9ed |
+ topology: core='120' vcpus='1'
|
|
|
6ae9ed |
diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
|
|
|
6ae9ed |
index ddcbd78..0410630 100644
|
|
|
6ae9ed |
--- a/tests/qemumonitorjsontest.c
|
|
|
6ae9ed |
+++ b/tests/qemumonitorjsontest.c
|
|
|
6ae9ed |
@@ -2591,6 +2591,7 @@ mymain(void)
|
|
|
6ae9ed |
DO_TEST_CPU_INFO("ppc64-hotplug-1", 24);
|
|
|
6ae9ed |
DO_TEST_CPU_INFO("ppc64-hotplug-2", 24);
|
|
|
6ae9ed |
DO_TEST_CPU_INFO("ppc64-hotplug-4", 24);
|
|
|
6ae9ed |
+ DO_TEST_CPU_INFO("ppc64-no-threads", 16);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
qemuTestDriverFree(&driver);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
--
|
|
|
6ae9ed |
2.10.0
|
|
|
6ae9ed |
|