]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86/paging: Enforce PG_external == PG_translate == PG_refcounts
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2016 11:28:08 +0000 (11:28 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Dec 2016 17:23:42 +0000 (17:23 +0000)
commit40459535279908631610c6c71cff4586fff7aad5
tree124873340687571add5b1f3a69783db89110b766
parent7a0c70482580234868fcc53b8d72e31966dc7c52
x86/paging: Enforce PG_external == PG_translate == PG_refcounts

Setting PG_refcounts but not PG_translate is not useful.

While adjusting this, make a few other improvements.

 * Have paging_enable() unilaterally reject any unknown modes.
 * Drop the or'ing of PG_{HAP,SH}_enable.  The underlying functions already do
   this.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/paging.c
xen/arch/x86/mm/shadow/common.c
xen/include/asm-x86/paging.h