lkml.org 
[lkml]   [2012]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] x86, efi: 1:1 pagetable mapping for virtual EFI calls
From
Date
On Fri, 2012-09-07 at 08:40 +0100, Jan Beulich wrote:
> >>> On 06.09.12 at 19:07, "H. Peter Anvin" <hpa@zytor.com> wrote:
> > Anyone care to refresh my memory why we can't use the "global"
> > 1:1+kernel map, possibly with some improvements (which would benefit the
> > users of those maps too)? With that I mean initial_page_map on i386 and
> > trampoline_pgd on x86-64...
>
> I don't think you want anything inserted in the low part of those
> (kernel-only) page tables, not even transiently.

There are already things inserted into the low part of those page
tables. In fact, the main purpose is to provide a 1:1 mapping for
realmode code. See machine_real_restart().

I think there's definitely merit to the approach Peter outlined above.
There's a variety of places in arch/x86 where a 1:1 mapping is needed.
It would be good to have a single pagetable that provides this.



\
 
 \ /
  Last update: 2012-09-07 10:42    [from the cache]
©2003-2011 Jasper Spaans