selftests/x86/fsgsbase: Test RD/WRGSBASE
authorAndy Lutomirski <luto@kernel.org>
Wed, 8 May 2019 10:02:29 +0000 (03:02 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 09:38:55 +0000 (11:38 +0200)
commit9ad75a0922e1533b08f3d1451bd908d19e5db41e
tree8cb4a3606c3b6a8ee1b96aa9535e793aae2da5db
parent5bf0cab60ee2c730ec91ae0aabc3146bcfed138b
selftests/x86/fsgsbase: Test RD/WRGSBASE

This validates that GS and GSBASE are independently preserved across
context switches.

[ chang: Use FSGSBASE instructions directly instead of .byte ]

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Ravi Shankar <ravi.v.shankar@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Link: https://lkml.kernel.org/r/1557309753-24073-15-git-send-email-chang.seok.bae@intel.com
tools/testing/selftests/x86/fsgsbase.c