Re: [GIT PULL] xen: Check NX state before setting up GDT mapping

From: Ingo Molnar
Date: Wed Sep 23 2009 - 08:36:50 EST



* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
> index 0dd0c2c..5d701bf 100644
> --- a/arch/x86/xen/enlighten.c
> +++ b/arch/x86/xen/enlighten.c
> @@ -1083,6 +1083,11 @@ asmlinkage void __init xen_start_kernel(void)
>
> __supported_pte_mask |= _PAGE_IOMAP;
>
> +#ifdef CONFIG_X86_64
> + /* Work out if we support NX */
> + check_efer();
> +#endif
> +

btw., this #ifdef could sure be eliminated, right?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/