summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2016-06-23 23:23:34 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-06-27 13:15:06 +1000
commit27393c33d806a4a5c3bc85342e4c1985a666681b (patch)
treecead2d1ada1bcd62ce40d0333c95f54cd02a46ac /include
parent62c9467dfffa62d999b9b9d6ff74e03454faea5f (diff)
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 'include')
-rw-r--r--include/hw/cpu/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/cpu/core.h b/include/hw/cpu/core.h
index 4540a7d34f..79ac79c29c 100644
--- a/include/hw/cpu/core.h
+++ b/include/hw/cpu/core.h
@@ -26,6 +26,9 @@ typedef struct CPUCore {
int nr_threads;
} CPUCore;
+/* Note: topology field names need to be kept in sync with
+ * 'CpuInstanceProperties' */
+
#define CPU_CORE_PROP_CORE_ID "core-id"
#endif