libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full.data
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

49 lines
1.4 KiB
Plaintext

[vcpu libvirt-id='0']
online=yes
hotpluggable=no
thread-id='2033724'
enable-id='1'
query-cpus-id='0'
type='Broadwell-x86_64-cpu'
qom_path='/machine/unattached/device[0]'
topology: socket='0' core='0' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='1']
online=yes
hotpluggable=no
thread-id='2033725'
enable-id='2'
query-cpus-id='1'
type='Broadwell-x86_64-cpu'
qom_path='/machine/unattached/device[2]'
topology: socket='0' core='0' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='2']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='0' core='1' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='3']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='0' core='1' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='4']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='0' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='5']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='0' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='6']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='1' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='7']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='1' thread='1' node='1' vcpus='1'