libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-basic-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

62 lines
1.3 KiB
JSON

{
"return": [
{
"arch": "ppc",
"current": true,
"cpu-index": 0,
"qom-path": "/machine/unattached/device[1]/thread[0]",
"thread-id": 21925
},
{
"arch": "ppc",
"current": false,
"cpu-index": 1,
"qom-path": "/machine/unattached/device[1]/thread[1]",
"thread-id": 21926
},
{
"arch": "ppc",
"current": false,
"cpu-index": 2,
"qom-path": "/machine/unattached/device[1]/thread[2]",
"thread-id": 21927
},
{
"arch": "ppc",
"current": false,
"cpu-index": 3,
"qom-path": "/machine/unattached/device[1]/thread[3]",
"thread-id": 21928
},
{
"arch": "ppc",
"current": false,
"cpu-index": 4,
"qom-path": "/machine/unattached/device[1]/thread[4]",
"thread-id": 21930
},
{
"arch": "ppc",
"current": false,
"cpu-index": 5,
"qom-path": "/machine/unattached/device[1]/thread[5]",
"thread-id": 21931
},
{
"arch": "ppc",
"current": false,
"cpu-index": 6,
"qom-path": "/machine/unattached/device[1]/thread[6]",
"thread-id": 21932
},
{
"arch": "ppc",
"current": false,
"cpu-index": 7,
"qom-path": "/machine/unattached/device[1]/thread[7]",
"thread-id": 21933
}
],
"id": "libvirt-12"
}