lkml.org 
[lkml]   [2009]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: unified percpu stuff
Brian Gerst wrote:
>> BTW, does the initial cpu0 percpu area get reallocated and moved during
>> boot, or does cpu0 keep using the same memory forever?
>>
>
> It is reallocated in setup_per_cpu_areas().
>

Hm, OK. What's the reason we need to move cpu 0's percpu area? Its
always seemed a bit awkward.

Once it has been moved, how can I find the address of a variable in the
original boot-time cpu 0 percpu area? There's a couple of pages which
Xen will have marked RO which need to be made RW if they're being freed
back into the kernel pool. Currently I use per_cpu_var(gdt_page), but
guess that's a small offset rather than a directly usable address.

Thanks,
J


\
 
 \ /
  Last update: 2009-01-27 18:53    [W:0.063 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site