x86/hvm: add SMAP support to HVM guest
authorFeng Wu <feng.wu@intel.com>
Mon, 12 May 2014 15:04:50 +0000 (17:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 15:04:50 +0000 (17:04 +0200)
commit58658992c16e330b89c0403bd5c3f68f8926419d
tree8178e6cb0996ff1e8fbb9c0e357f38dd77bdebb7
parent64df8742aa4f6ff2037ebdf7c9985ad16a3d107d
x86/hvm: add SMAP support to HVM guest

Intel new CPU supports SMAP (Supervisor Mode Access Prevention).
SMAP prevents supervisor-mode accesses to any linear address with
a valid translation for which the U/S flag (bit 2) is 1 in every
paging-structure entry controlling the translation for the linear
address.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/guest_walk.c
xen/include/asm-x86/hvm/hvm.h