libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full-cpus.json
Paolo Bonzini 332ea27164 tests: convert x86_64 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 x86 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

32 lines
592 B
JSON

{
"return": [
{
"arch": "x86",
"current": true,
"props": {
"core-id": 0,
"thread-id": 0,
"node-id": 0,
"socket-id": 0
},
"cpu-index": 0,
"qom-path": "/machine/unattached/device[0]",
"thread-id": 2033724
},
{
"arch": "x86",
"current": false,
"props": {
"core-id": 0,
"thread-id": 1,
"node-id": 1,
"socket-id": 0
},
"cpu-index": 1,
"qom-path": "/machine/unattached/device[2]",
"thread-id": 2033725
}
],
"id": "libvirt-21"
}