direct-io.hg

changeset 14403:26a1378d5ece

[LINUX] Don't pin the initial page tables on x86_64 when XENFEAT_writable_page_tables.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Mar 16 10:24:56 2007 +0000 (2007-03-16)
parents 487e37c22b28
children 422a61ebac54
files linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c	Fri Mar 16 10:05:57 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c	Fri Mar 16 10:24:56 2007 +0000
     1.3 @@ -597,8 +597,10 @@ void __init xen_init_pt(void)
     1.4  	early_make_page_readonly(level2_kernel_pgt,
     1.5  				 XENFEAT_writable_page_tables);
     1.6  
     1.7 -	xen_pgd_pin(__pa_symbol(init_level4_pgt));
     1.8 -	xen_pgd_pin(__pa_symbol(init_level4_user_pgt));
     1.9 +	if (!xen_feature(XENFEAT_writable_page_tables)) {
    1.10 +		xen_pgd_pin(__pa_symbol(init_level4_pgt));
    1.11 +		xen_pgd_pin(__pa_symbol(init_level4_user_pgt));
    1.12 +	}
    1.13  
    1.14  	set_pgd((pgd_t *)(init_level4_user_pgt + 511), 
    1.15  		mk_kernel_pgd(__pa_symbol(level3_user_pgt)));