diff options
author | Igor Mammedov | 2016-06-10 02:59:08 +0200 |
---|---|---|
committer | David Gibson | 2016-06-17 08:33:49 +0200 |
commit | 2474bfd4603b2d354fdb4001b083b7c72bff627f (patch) | |
tree | 76c3cccef7f6e8d05f7f56e7e30f08cac10a02cb /hw/usb/dev-storage.c | |
parent | hmp: Add 'info hotpluggable-cpus' HMP command (diff) | |
download | qemu-2474bfd4603b2d354fdb4001b083b7c72bff627f.tar.gz qemu-2474bfd4603b2d354fdb4001b083b7c72bff627f.tar.xz qemu-2474bfd4603b2d354fdb4001b083b7c72bff627f.zip |
spapr: implement query-hotpluggable-cpus callback
It returns a list of present/possible to hotplug CPU
objects with a list of properties to use with
device_add.
in spapr case returned list would looks like:
-> { "execute": "query-hotpluggable-cpus" }
<- {"return": [
{ "props": { "core": 8 }, "type": "POWER8-spapr-cpu-core",
"vcpus-count": 2 },
{ "props": { "core": 0 }, "type": "POWER8-spapr-cpu-core",
"vcpus-count": 2,
"qom-path": "/machine/unattached/device[0]"}
]}'
TODO:
add 'node' property for core <-> numa node mapping
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/usb/dev-storage.c')
0 files changed, 0 insertions, 0 deletions