x86: add support for STAC/CLAC instructions
authorFeng Wu <feng.wu@intel.com>
Mon, 12 May 2014 15:00:39 +0000 (17:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 15:00:39 +0000 (17:00 +0200)
commit94540285886cc984959da585f79652f8daf406fc
treed50a3f1563d145ecc2159b13bc84067bd9e69659
parentd75215805ce6ed20b3807955fab6a7f7a3368bee
x86: add support for STAC/CLAC instructions

The STAC/CLAC instructions are only available when SMAP feature is
available, but on the other hand they aren't needed if SMAP is not
enabled, or before we start to run userspace, in that case, the
functions and macros do nothing.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/asm_defns.h