mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
7ab0080bed
Add a positive test and few negative tests.
594 lines
13 KiB
JSON
594 lines
13 KiB
JSON
{"execute":"query-hotpluggable-cpus","id":"libvirt-1"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"props": {
|
|
"core-id": 24
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 16
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 8
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 0
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/unattached/device[1]",
|
|
"type": "host-spapr-cpu-core"
|
|
}
|
|
],
|
|
"id": "libvirt-15"
|
|
}
|
|
|
|
{"execute":"query-cpus","id":"libvirt-2"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "ppc",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 21925
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 21926
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"nip": -4611686018422360608,
|
|
"qom_path": "/machine/unattached/device[1]/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 21927
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 21928
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 21930
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 5,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 21931
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 6,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 21932
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 7,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 21933
|
|
}
|
|
],
|
|
"id": "libvirt-12"
|
|
}
|
|
|
|
{
|
|
"execute": "device_add",
|
|
"arguments": {
|
|
"driver": "host-spapr-cpu-core",
|
|
"id": "vcpu8",
|
|
"core-id": 8
|
|
},
|
|
"id": "libvirt-3"
|
|
}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute":"query-hotpluggable-cpus","id":"libvirt-4"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"props": {
|
|
"core-id": 24
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 16
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 8
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/peripheral/vcpu1",
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 0
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/unattached/device[1]",
|
|
"type": "host-spapr-cpu-core"
|
|
}
|
|
],
|
|
"id": "libvirt-15"
|
|
}
|
|
|
|
{"execute":"query-cpus","id":"libvirt-5"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "ppc",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 21925
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 21926
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 21927
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 21928
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 21930
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 5,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 21931
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 6,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 21932
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 7,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 21933
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 8,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 22131
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 9,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 22132
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 10,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 22133
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 11,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 22134
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 12,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 22135
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 13,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 22136
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 14,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 22137
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 15,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 22138
|
|
}
|
|
],
|
|
"id": "libvirt-14"
|
|
}
|
|
|
|
{
|
|
"execute": "device_add",
|
|
"arguments": {
|
|
"driver": "host-spapr-cpu-core",
|
|
"id": "vcpu16",
|
|
"core-id": 16
|
|
},
|
|
"id": "libvirt-6"
|
|
}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute":"query-hotpluggable-cpus","id":"libvirt-7"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"props": {
|
|
"core-id": 24
|
|
},
|
|
"vcpus-count": 8,
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 16
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/peripheral/vcpu2",
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 8
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/peripheral/vcpu1",
|
|
"type": "host-spapr-cpu-core"
|
|
},
|
|
{
|
|
"props": {
|
|
"core-id": 0
|
|
},
|
|
"vcpus-count": 8,
|
|
"qom-path": "/machine/unattached/device[1]",
|
|
"type": "host-spapr-cpu-core"
|
|
}
|
|
],
|
|
"id": "libvirt-15"
|
|
}
|
|
|
|
{"execute":"query-cpus","id":"libvirt-8"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "ppc",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 21925
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 21926
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"nip": -4611686018422360576,
|
|
"qom_path": "/machine/unattached/device[1]/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 21927
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"nip": -4611686018422360596,
|
|
"qom_path": "/machine/unattached/device[1]/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 21928
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 21930
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 5,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 21931
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 6,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/unattached/device[1]/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 21932
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 7,
|
|
"nip": -4611686018422360596,
|
|
"qom_path": "/machine/unattached/device[1]/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 21933
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 8,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 22131
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 9,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 22132
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 10,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 22133
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 11,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 22134
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 12,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 22135
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 13,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 22136
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 14,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 22137
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 15,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu1/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 22138
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 16,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[0]",
|
|
"halted": false,
|
|
"thread_id": 22223
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 17,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[1]",
|
|
"halted": false,
|
|
"thread_id": 22224
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 18,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[2]",
|
|
"halted": false,
|
|
"thread_id": 22225
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 19,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[3]",
|
|
"halted": false,
|
|
"thread_id": 22226
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 20,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[4]",
|
|
"halted": false,
|
|
"thread_id": 22227
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 21,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[5]",
|
|
"halted": false,
|
|
"thread_id": 22228
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 22,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[6]",
|
|
"halted": false,
|
|
"thread_id": 22229
|
|
},
|
|
{
|
|
"arch": "ppc",
|
|
"current": false,
|
|
"CPU": 23,
|
|
"nip": -4611686018426772172,
|
|
"qom_path": "/machine/peripheral/vcpu2/thread[7]",
|
|
"halted": false,
|
|
"thread_id": 22230
|
|
}
|
|
],
|
|
"id": "libvirt-17"
|
|
}
|