linux/arch/x86/mm
Jeremy Fitzhardinge 4f9c11dd49 x86, 64-bit: adjust mapping of physical pagetables to work with Xen
This makes a few of changes to the construction of the initial
pagetables to work better with paravirt_ops/Xen.  The main areas
are:

 1. Support non-PSE mapping of memory, since Xen doesn't currently
    allow 2M pages to be mapped in guests.

 2. Make sure that the ioremap alias of all pages are dropped before
    attaching the new page to the pagetable.  This avoids having
    writable aliases of pagetable pages.

 3. Preserve existing pagetable entries, rather than overwriting.  Its
    possible that a fair amount of pagetable has already been constructed,
    so reuse what's already in place rather than ignoring and overwriting it.

The algorithm relies on the invariant that any page which is part of
the kernel pagetable is itself mapped in the linear memory area.  This
way, it can avoid using ioremap on a pagetable page.

The invariant holds because it maps memory from low to high addresses,
and also allocates memory from low to high.  Each allocated page can
map at least 2M of address space, so the mapped area will always
progress much faster than the allocated area.  It relies on the early
boot code mapping enough pages to get started.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-07-08 13:11:07 +02:00
..
discontig_32.c x86: introduce init_memory_mapping for 32bit #3 2008-07-08 13:10:33 +02:00
dump_pagetables.c
extable.c
fault.c x86: simplify vmalloc_sync_all 2008-07-08 13:10:59 +02:00
highmem_32.c
hugetlbpage.c
init_32.c x86: introduce init_memory_mapping for 32bit #3 2008-07-08 13:10:33 +02:00
init_64.c x86, 64-bit: adjust mapping of physical pagetables to work with Xen 2008-07-08 13:11:07 +02:00
ioremap.c x86, 64-bit: adjust mapping of physical pagetables to work with Xen 2008-07-08 13:11:07 +02:00
k8topology_64.c x86: remove end_pfn in 64bit 2008-07-08 13:10:38 +02:00
Makefile
mmap.c
numa_64.c x86: remove end_pfn in 64bit 2008-07-08 13:10:38 +02:00
pageattr-test.c
pageattr.c
pat.c
pgtable_32.c x86: move reservetop and vmalloc parsing to pgtable_32.c 2008-07-08 12:50:19 +02:00
pgtable.c x86: preallocate and prepopulate separately 2008-07-08 13:11:02 +02:00
srat_64.c x86: remove end_pfn in 64bit 2008-07-08 13:10:38 +02:00