[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



* 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.