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 /hmp.c | |
parent | 62c9467dfffa62d999b9b9d6ff74e03454faea5f (diff) | |
download | qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.tar.gz qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.tar.bz2 qemu-27393c33d806a4a5c3bc85342e4c1985a666681b.zip |
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 'hmp.c')
-rw-r--r-- | hmp.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -2457,17 +2457,17 @@ void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict) c = l->value->props; monitor_printf(mon, " CPUInstance Properties:\n"); - if (c->has_node) { - monitor_printf(mon, " node: \"%" PRIu64 "\"\n", c->node); + if (c->has_node_id) { + monitor_printf(mon, " node-id: \"%" PRIu64 "\"\n", c->node_id); } - if (c->has_socket) { - monitor_printf(mon, " socket: \"%" PRIu64 "\"\n", c->socket); + if (c->has_socket_id) { + monitor_printf(mon, " socket-id: \"%" PRIu64 "\"\n", c->socket_id); } - if (c->has_core) { - monitor_printf(mon, " core: \"%" PRIu64 "\"\n", c->core); + if (c->has_core_id) { + monitor_printf(mon, " core-id: \"%" PRIu64 "\"\n", c->core_id); } - if (c->has_thread) { - monitor_printf(mon, " thread: \"%" PRIu64 "\"\n", c->thread); + if (c->has_thread_id) { + monitor_printf(mon, " thread-id: \"%" PRIu64 "\"\n", c->thread_id); } l = l->next; |