Re: [PATCH 1/6] x86: fix NX bit handling in change_page_attr
From: Ingo Molnar
Date: Fri Jan 25 2008 - 05:33:33 EST
* Ingo Molnar <mingo@xxxxxxx> wrote:
> ...
> + ref_prot = pte_pgprot(pte_mkexec(pte_clrhuge(*kpte)));
>
> i.e. it now goes through all the proper accessors.
i guess it would be nicer to have the proper accessors to just clear the
NX bit from ref-prot - instead of re-constructing the *kpte from
scratch. But i see no other way to do it right now than to access
pgprot_val() as an lvalue. Jeremy, what would be the best approach here?
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/