libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads-cpus.json
Paolo Bonzini eb98eb0ce8 tests: convert ppc64 tests to query-cpus-fast
All supported versions of QEMU include the query-cpus-fast QMP command.
In preparation for dropping support for the old "query-cpus" commands,
convert the JSON output for PPC tests to the new format, and drop the
"halted" field from the expected output as it is not available anymore.

The CPU properties were obtained from the query-hotpluggable-cpus output
in tests/qemumonitorjsondata.  CPU, thread_id, and qom_path are renamed
respectively to cpu-index, qom-path and thread-id, while nip and halted
are removed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2022-08-08 17:36:49 +02:00

86 lines
1.7 KiB
JSON

{
"return": [
{
"arch": "ppc",
"current": true,
"cpu-index": 0,
"props": {
"core-id": 0
},
"qom-path": "/machine/unattached/device[1]/thread[0]",
"thread-id": 35232
},
{
"arch": "ppc",
"current": false,
"cpu-index": 1,
"props": {
"core-id": 8
},
"qom-path": "/machine/unattached/device[2]/thread[0]",
"thread-id": 35233
},
{
"arch": "ppc",
"current": false,
"cpu-index": 2,
"props": {
"core-id": 16
},
"qom-path": "/machine/unattached/device[3]/thread[0]",
"thread-id": 35234
},
{
"arch": "ppc",
"current": false,
"cpu-index": 3,
"props": {
"core-id": 24
},
"qom-path": "/machine/unattached/device[4]/thread[0]",
"thread-id": 35235
},
{
"arch": "ppc",
"current": false,
"cpu-index": 4,
"props": {
"core-id": 32
},
"qom-path": "/machine/unattached/device[5]/thread[0]",
"thread-id": 35236
},
{
"arch": "ppc",
"current": false,
"cpu-index": 5,
"props": {
"core-id": 40
},
"qom-path": "/machine/unattached/device[6]/thread[0]",
"thread-id": 35237
},
{
"arch": "ppc",
"current": false,
"cpu-index": 6,
"props": {
"core-id": 48
},
"qom-path": "/machine/unattached/device[7]/thread[0]",
"thread-id": 35238
},
{
"arch": "ppc",
"current": false,
"cpu-index": 7,
"props": {
"core-id": 56
},
"qom-path": "/machine/unattached/device[8]/thread[0]",
"thread-id": 35239
}
],
"id": "libvirt-11"
}