diff options
author | Yang, Wei <wei.y.yang@intel.com> | 2011-06-15 16:06:48 +0100 |
---|---|---|
committer | Yang, Wei <wei.y.yang@intel.com> | 2011-06-15 16:06:48 +0100 |
commit | bfb9f7deda04698c30e6b671bf7069e8b5fbb75f (patch) | |
tree | d0829e2606f9ba2ec602e2e7b6fe88487e2b7f0a /tools/libxc/xc_cpuid_x86.c | |
parent | ef99df4b11c2f924c46e06ad541b3410e0f4ab7b (diff) | |
download | xen-bfb9f7deda04698c30e6b671bf7069e8b5fbb75f.tar.gz xen-bfb9f7deda04698c30e6b671bf7069e8b5fbb75f.tar.bz2 xen-bfb9f7deda04698c30e6b671bf7069e8b5fbb75f.zip |
Enable RDWRGSFS feature support for HVM guests
Write/read FS/GS base instructions enable user level code to
read/write FS & GS segment base registers for thread local storage.
Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Diffstat (limited to 'tools/libxc/xc_cpuid_x86.c')
-rw-r--r-- | tools/libxc/xc_cpuid_x86.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index d791691e69..d95baf5403 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -356,7 +356,8 @@ static void xc_cpuid_hvm_policy( case 0x00000007: /* Intel-defined CPU features */ if ( input[1] == 0 ) { regs[1] &= (bitmaskof(X86_FEATURE_SMEP) | - bitmaskof(X86_FEATURE_ERMS)); + bitmaskof(X86_FEATURE_ERMS) | + bitmaskof(X86_FEATURE_FSGSBASE)); } else regs[1] = 0; regs[0] = regs[2] = regs[3] = 0; |