[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 6/6] xen/arm: Use the hardware ID to boot correctly secondary cpus



On 09/25/2013 04:41 PM, Ian Campbell wrote:
> On Wed, 2013-09-18 at 14:15 +0100, Julien Grall wrote:
>> +    /* Browse the logical map and find the associate logical cpu ID */
> 
> We already have init_stack (the stack for the cpu which is coming up to
> use). In my start of day rewrite I also add/extend init_ttbr. You could
> add init_cpu_id or something.
> TBH it's getting to the point where we might want struct init_info
> { ... }

Good idea. I will add a patch for this solution in my patch series.

>> +    for ( cpuid = 1; cpuid < nr_cpu_ids; cpuid++ )
>> +    {
>> +        if ( cpu_logical_map(cpuid) == hwid )
>> +            break;
>> +    }
>> +
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.