KVM: Expose RDWRGSFS bit to KVM guests
This patch exposes RDWRGSFS bit to KVM guests.
Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 423e0cd..76c16a5 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2372,7 +2372,7 @@
/* cpuid 7.0.ebx */
const u32 kvm_supported_word9_x86_features =
- F(SMEP);
+ F(SMEP) | F(FSGSBASE);
/* all calls to cpuid_count() should be made on the same cpu */
get_cpu();