qmp: fix spapr example of query-hotpluggable-cpus
PATCH 1/1 qmp: fix spapr example of query-hotpluggable-cpus
27393c33 qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore added -id suffix to property names but forgot to fix example in qmp-commands.hx
Fix example to have 'core-id' instead of 'core' to match current code
--- qmp-commands.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
qmp-commands.hx +2 -2
@@ -4978,8 +4978,8 @@ Example for pseries machine type started with -> { "execute": "query-hotpluggable-cpus" } <- {"return": [ - { "props": { "core": 8 }, "type": "POWER8-spapr-cpu-core", + { "props": { "core-id": 8 }, "type": "POWER8-spapr-cpu-core", "vcpus-count": 1 }, - { "props": { "core": 0 }, "type": "POWER8-spapr-cpu-core", + { "props": { "core-id": 0 }, "type": "POWER8-spapr-cpu-core", "vcpus-count": 1, "qom-path": "/machine/unattached/device[0]"} ]}'
Signature · 1 line
1.8.3.1
Quoted 9 lines · Igor Mammedov
27393c33qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore added -id suffix to property names but forgot to fix example in qmp-commands.hxFix example to have 'core-id' instead of 'core' to match current code
Signed-off-by Igor Mammedov <[email protected]>--- qmp-commands.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Oops; thanks for cleaning up after me.
David Gibson
AppliedQuoted 6 lines · Peter Krempa
Quoted 5 lines · Igor Mammedov
27393c33qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore added -id suffix to property names but forgot to fix example in qmp-commands.hxFix example to have 'core-id' instead of 'core' to match current code
Quoted 8 lines
Quoted 4 lines
Signed-off-by Igor Mammedov <[email protected]>--- qmp-commands.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Oops; thanks for cleaning up after me.
Reviewed-by Peter Krempa <[email protected]>
Applied to ppc-for-2.7, thanks.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson