Am 18.02.2015 um 20:51 schrieb Igor Mammedov: > On Wed, 18 Feb 2015 18:45:51 +0100 > Andreas Färber <afaer...@suse.de> wrote: > >> Hi, >> >> Am 17.02.2015 um 11:10 schrieb Shannon Zhao: >>> Add apic_id property for ARMCPU. It can be used for cpu hotplug. >>> >>> Signed-off-by: Shannon Zhao <zhaoshengl...@huawei.com> >>> --- >>> target-arm/cpu-qom.h | 1 + >>> target-arm/cpu.c | 77 >>> ++++++++++++++++++++++++++++++++++++++++++++++++++ >>> target-arm/cpu.h | 2 + 3 files changed, 80 insertions(+), 0 >>> deletions(-) >>> >>> diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h >>> index ed5a644..d4560e2 100644 >>> --- a/target-arm/cpu-qom.h >>> +++ b/target-arm/cpu-qom.h >>> @@ -59,6 +59,7 @@ typedef struct ARMCPU { >>> /*< public >*/ >>> >>> CPUARMState env; >>> + uint32_t apic_id; >> >> Can you add a matching @apic_id: documentation entry above the struct? >> >>> >>> /* Coprocessor information */ >>> GHashTable *cp_regs; >>> diff --git a/target-arm/cpu.c b/target-arm/cpu.c >>> index 285947f..9202b07 100644 >>> --- a/target-arm/cpu.c >>> +++ b/target-arm/cpu.c >> [...] >>> @@ -343,6 +407,11 @@ static void arm_cpu_initfn(Object *obj) >>> cpu->cp_regs = g_hash_table_new_full(g_int_hash, g_int_equal, >>> g_free, g_free); >>> >>> + object_property_add(obj, "apic-id", "int", >>> + arm_cpuid_get_apic_id, >>> + arm_cpuid_set_apic_id, NULL, NULL, NULL); >> >> The property is correctly called apic-id. Please update the commit >> message, which has it as apic_id (2x). > Is there such thing as apic-id on ARM?
Oops, confused it with ACPI... On ARM there's the GIC (or NVIC). There are some IDs that are being represented in the device trees, with jumps between clusters, i.e. 0..3 and 100..103 or so. Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)