mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
62c9467dff
commit
27393c33d8
4 changed files with 23 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue