diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-16 12:23:21 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-16 12:23:21 +0000 |
commit | 5a396b13fd70696a6e62eca387d4e4b51dbb6853 (patch) | |
tree | e9ca9743378e89dc781692e38685e2ccaa315a65 /tools/libxc/xc_cpuid_x86.c | |
parent | ec164cc29f29d54fea55721d77095ca397ffbb22 (diff) | |
download | xen-5a396b13fd70696a6e62eca387d4e4b51dbb6853.tar.gz xen-5a396b13fd70696a6e62eca387d4e4b51dbb6853.tar.bz2 xen-5a396b13fd70696a6e62eca387d4e4b51dbb6853.zip |
HVM RDTSCP fixes
- Put the guest rdtscp cpuid logic in xc_cpuid_x86.c.
- MSR_TSC_AUX's high 32bit is reserved, so only write the low 32bit.
Signed-off-by: Dongxiao Xu <dongxiao.xu@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 7a5ec1910b..13b3c78fa0 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -136,7 +136,8 @@ static void intel_xc_cpuid_policy( regs[2] &= (is_64bit ? bitmaskof(X86_FEATURE_LAHF_LM) : 0); regs[3] &= ((is_pae ? bitmaskof(X86_FEATURE_NX) : 0) | (is_64bit ? bitmaskof(X86_FEATURE_LM) : 0) | - (is_64bit ? bitmaskof(X86_FEATURE_SYSCALL) : 0)); + (is_64bit ? bitmaskof(X86_FEATURE_SYSCALL) : 0) | + (is_64bit ? bitmaskof(X86_FEATURE_RDTSCP) : 0)); break; } |