From: Jeremy Fitzhardinge Date: Wed, 13 Feb 2008 15:20:35 +0000 (+0100) Subject: xen: unpin initial Xen pagetable once we're finished with it X-Git-Tag: v2.6.25-rc2~74^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2b5407811db755257ae53c75cc6b312ed5d2ad9e;p=linux-2.6-omap-h63xx.git xen: unpin initial Xen pagetable once we're finished with it Unpin the Xen-provided pagetable once we've finished with it, so it doesn't cause stray references which cause later swapper_pg_dir pagetable updates to fail. Signed-off-by: Jeremy Fitzhardinge Tested-by: Jody Belka Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index de647bc6e74..49e5358f481 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -798,6 +798,10 @@ static __init void xen_pagetable_setup_start(pgd_t *base) * added to the table can be prepared properly for Xen. */ xen_write_cr3(__pa(base)); + + /* Unpin initial Xen pagetable */ + pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, + PFN_DOWN(__pa(xen_start_info->pt_base))); } static __init void xen_pagetable_setup_done(pgd_t *base)