summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYang, Wei <wei.y.yang@intel.com>2011-06-14 20:10:19 +0800
committerAvi Kivity <avi@redhat.com>2011-07-12 13:16:24 +0300
commit176f61da82435eae09cc96f70b530d1ba0746b8b (patch)
tree7f31a0c846d40967b4475c53b709063679f0ee8d /arch
parent74dc2b4ffe3af1eac367be0178f88487cb9b240a (diff)
downloadop-kernel-dev-176f61da82435eae09cc96f70b530d1ba0746b8b.zip
op-kernel-dev-176f61da82435eae09cc96f70b530d1ba0746b8b.tar.gz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
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 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
/* 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();
OpenPOWER on IntegriCloud