libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-aarch64-clusters-hotplug.json
Andrea Bolognani cb7abb0703 tests: Verify handling of CPU clusters in QMP data
Since aarch64 doesn't support CPU hotplug at the moment, we have
to get a bit creative.

While the 'query-cpus-fast' output is taken directly from a VM
configured as

  <vcpu current='7'>16</vcpu>
  <cpu mode='host-passthrough'>
    <topology sockets='2' dies='1' clusters='2' cores='2' threads='2'/>
  </cpu>

the 'query-hotpluggable-cpus' output is constructed by hand
starting from the former and using the 'x86-dies' test data as
a model.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2024-01-15 14:56:36 +01:00

172 lines
3.3 KiB
JSON

{
"return": [
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 1,
"cluster-id": 1
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 1,
"cluster-id": 1
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 1,
"cluster-id": 1
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 1,
"cluster-id": 1
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 1,
"cluster-id": 0
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 1,
"cluster-id": 0
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 1,
"cluster-id": 0
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 1,
"cluster-id": 0
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 0,
"cluster-id": 1
},
"vcpus-count": 1,
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 0,
"cluster-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[6]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 0,
"cluster-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[5]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 0,
"cluster-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[4]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 0,
"cluster-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[3]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 0,
"cluster-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[2]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 0,
"cluster-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[1]",
"type": "host-arm-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 0,
"cluster-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[0]",
"type": "host-arm-cpu"
}
]
}