lkml.org 
[lkml]   [2009]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 13 May 2009 19:09:52 +0900
FromTejun Heo <>
SubjectRe: remap allocator for per-CPU memory
Tejun Heo wrote:
> Jan Beulich wrote:
>> Didn't the addition of this allocator introduce another case that
>> needs special treatment in pageattr.c? Since large pages are used
>> for mapping the allocated memory, but only part of the initially
>> allocated large pages are actually retained, there's now the
>> potential for TLB aliases with different cache attributes for those
>> parts of these pages that get passed back through free_bootmem().
>
> Hmmm.... yes, the large page mapping and the returned part of it would
> alias each other. What changes should be made for it? Dunno much
> about how pageattr works.

Okay, just glanced over the pageattr code. I don't think we need any
special provisions for this as long as the TLB is fine with having
overlapping PMD and PTE mappings with different attributes (please
note that these two mappings aren't occupying the same linear
addresses - they're aliases). This is allowed, right?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2009-05-13 12:13    [from the cache]
©2003-2010