mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
69613157bb
Test that the old approach generates correct commands.
194 lines
3.9 KiB
JSON
194 lines
3.9 KiB
JSON
{"execute":"query-cpus","id":"libvirt-1"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "x86",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"qom_path": "/machine/unattached/device[0]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518291
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"qom_path": "/machine/unattached/device[2]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518292
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"qom_path": "/machine/unattached/device[3]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518294
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"qom_path": "/machine/unattached/device[4]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518295
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"qom_path": "/machine/unattached/device[5]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518296
|
|
}
|
|
],
|
|
"id": "libvirt-22"
|
|
}
|
|
|
|
{"execute":"cpu-add","arguments":{"id":5},"id":"libvirt-2"}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute":"query-cpus","id":"libvirt-3"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "x86",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"qom_path": "/machine/unattached/device[0]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518291
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"qom_path": "/machine/unattached/device[2]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518292
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"qom_path": "/machine/unattached/device[3]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518294
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"qom_path": "/machine/unattached/device[4]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518295
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"qom_path": "/machine/unattached/device[5]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518296
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 5,
|
|
"qom_path": "/machine/peripheral/vcpu5",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518297
|
|
}
|
|
],
|
|
"id": "libvirt-22"
|
|
}
|
|
|
|
{"execute":"cpu-add","arguments":{"id":6},"id":"libvirt-4"}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute":"query-cpus","id":"libvirt-5"}
|
|
|
|
{
|
|
"return": [
|
|
{
|
|
"arch": "x86",
|
|
"current": true,
|
|
"CPU": 0,
|
|
"qom_path": "/machine/unattached/device[0]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518291
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 1,
|
|
"qom_path": "/machine/unattached/device[2]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518292
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 2,
|
|
"qom_path": "/machine/unattached/device[3]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518294
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 3,
|
|
"qom_path": "/machine/unattached/device[4]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518295
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 4,
|
|
"qom_path": "/machine/unattached/device[5]",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518296
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 5,
|
|
"qom_path": "/machine/peripheral/vcpu5",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518297
|
|
},
|
|
{
|
|
"arch": "x86",
|
|
"current": false,
|
|
"CPU": 6,
|
|
"qom_path": "/machine/peripheral/vcpu6",
|
|
"pc": -2130415978,
|
|
"halted": true,
|
|
"thread_id": 518298
|
|
}
|
|
],
|
|
"id": "libvirt-22"
|
|
}
|