libvirt/tests/qemuhotplugtestcpus/x86-modern-individual-add-monitor.json
Peter Krempa 7b62dfc737 qemuhotplugtestcpus: Always use 'query-cpus-fast'
Use the new command in the test suite by asserting the capability
and adjusting test data to the correct field names as they changed
compared to 'query-cpus'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2020-03-05 11:31:38 +01:00

300 lines
5.9 KiB
JSON

{"execute":"query-hotpluggable-cpus","id":"libvirt-1"}
{
"return": [
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 1
},
"vcpus-count": 1,
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 1
},
"vcpus-count": 1,
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 1
},
"vcpus-count": 1,
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[5]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[4]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[3]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[2]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[0]",
"type": "qemu64-x86_64-cpu"
}
],
"id": "libvirt-23"
}
{"execute":"query-cpus-fast","id":"libvirt-2"}
{
"return": [
{
"target": "x86",
"current": true,
"cpu-index": 0,
"qom-path": "/machine/unattached/device[0]",
"pc": -2130415978,
"halted": true,
"thread-id": 518291
},
{
"target": "x86",
"current": false,
"cpu-index": 1,
"qom-path": "/machine/unattached/device[2]",
"pc": -2130415978,
"halted": true,
"thread-id": 518292
},
{
"target": "x86",
"current": false,
"cpu-index": 2,
"qom-path": "/machine/unattached/device[3]",
"pc": -2130415978,
"halted": true,
"thread-id": 518294
},
{
"target": "x86",
"current": false,
"cpu-index": 3,
"qom-path": "/machine/unattached/device[4]",
"pc": -2130415978,
"halted": true,
"thread-id": 518295
},
{
"target": "x86",
"current": false,
"cpu-index": 4,
"qom-path": "/machine/unattached/device[5]",
"pc": -2130415978,
"halted": true,
"thread-id": 518296
}
],
"id": "libvirt-22"
}
{
"execute": "device_add",
"arguments": {
"driver": "qemu64-x86_64-cpu",
"id": "vcpu7",
"core-id": 1,
"thread-id": 1,
"socket-id": 1
},
"id": "libvirt-3"
}
{"return": {}}
{"execute":"query-hotpluggable-cpus","id":"libvirt-4"}
{
"return": [
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/peripheral/vcpu7",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 1
},
"vcpus-count": 1,
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 1
},
"vcpus-count": 1,
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 1
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[5]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 1,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[4]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 1,
"thread-id": 0,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[3]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 1,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[2]",
"type": "qemu64-x86_64-cpu"
},
{
"props": {
"core-id": 0,
"thread-id": 0,
"socket-id": 0
},
"vcpus-count": 1,
"qom-path": "/machine/unattached/device[0]",
"type": "qemu64-x86_64-cpu"
}
],
"id": "libvirt-23"
}
{"execute":"query-cpus-fast","id":"libvirt-5"}
{
"return": [
{
"target": "x86",
"current": true,
"cpu-index": 0,
"qom-path": "/machine/unattached/device[0]",
"pc": -2130415978,
"halted": true,
"thread-id": 518291
},
{
"target": "x86",
"current": false,
"cpu-index": 1,
"qom-path": "/machine/unattached/device[2]",
"pc": -2130415978,
"halted": true,
"thread-id": 518292
},
{
"target": "x86",
"current": false,
"cpu-index": 2,
"qom-path": "/machine/unattached/device[3]",
"pc": -2130415978,
"halted": true,
"thread-id": 518294
},
{
"target": "x86",
"current": false,
"cpu-index": 3,
"qom-path": "/machine/unattached/device[4]",
"pc": -2130415978,
"halted": true,
"thread-id": 518295
},
{
"target": "x86",
"current": false,
"cpu-index": 4,
"qom-path": "/machine/unattached/device[5]",
"pc": -2130415978,
"halted": true,
"thread-id": 518296
},
{
"target": "x86",
"current": false,
"cpu-index": 5,
"qom-path": "/machine/peripheral/vcpu7",
"pc": -2130415978,
"halted": true,
"thread-id": 518297
}
],
"id": "libvirt-22"
}