diff options
author | Peter Krempa <pkrempa@redhat.com> | 2016-06-23 23:23:34 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-06-27 13:15:06 +1000 |
commit | 27393c33d806a4a5c3bc85342e4c1985a666681b (patch) | |
tree | cead2d1ada1bcd62ce40d0333c95f54cd02a46ac /hw/ppc | |
parent | 62c9467dfffa62d999b9b9d6ff74e03454faea5f (diff) | |
download | qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.zip qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.tar.gz qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.tar.bz2 |
qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore
struct CPUCore uses 'id' suffix in the property name. As docs for
query-hotpluggable-cpus state that the cpu core properties should be
passed back to device_add by management in case new members are added
and thus the names for the fields should be kept in sync.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
[dwg: Removed a duplicated word in comment]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 778fa25..0b6bb9c 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -2367,8 +2367,8 @@ static HotpluggableCPUList *spapr_query_hotpluggable_cpus(MachineState *machine) cpu_item->type = spapr_get_cpu_core_type(machine->cpu_model); cpu_item->vcpus_count = smp_threads; - cpu_props->has_core = true; - cpu_props->core = i * smt; + cpu_props->has_core_id = true; + cpu_props->core_id = i * smt; /* TODO: add 'has_node/node' here to describe to which node core belongs */ |