mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
7b62dfc737
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>
472 lines
9.4 KiB
JSON
472 lines
9.4 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": "vcpu5",
|
|
"core-id": 0,
|
|
"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,
|
|
"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,
|
|
"qom-path": "/machine/peripheral/vcpu5",
|
|
"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/vcpu5",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread-id": 518297
|
|
}
|
|
],
|
|
"id": "libvirt-22"
|
|
}
|
|
|
|
{
|
|
"execute": "device_add",
|
|
"arguments": {
|
|
"driver": "qemu64-x86_64-cpu",
|
|
"id": "vcpu6",
|
|
"core-id": 1,
|
|
"thread-id": 0,
|
|
"socket-id": 1
|
|
},
|
|
"id": "libvirt-6"
|
|
}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute":"query-hotpluggable-cpus","id":"libvirt-7"}
|
|
|
|
{
|
|
"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,
|
|
"qom-path": "/machine/peripheral/vcpu6",
|
|
"type": "qemu64-x86_64-cpu"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 0,
|
|
"thread-id": 1,
|
|
"socket-id": 1
|
|
},
|
|
"vcpus-count": 1,
|
|
"qom-path": "/machine/peripheral/vcpu5",
|
|
"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-8"}
|
|
|
|
{
|
|
"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/vcpu5",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread-id": 518297
|
|
},
|
|
{
|
|
"target": "x86",
|
|
"current": false,
|
|
"cpu-index": 6,
|
|
"qom-path": "/machine/peripheral/vcpu6",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread-id": 518298
|
|
}
|
|
],
|
|
"id": "libvirt-22"
|
|
}
|