|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86, hvm: Make host TscInvariant CPUID fl
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1257792867 0
# Node ID e8483c7f668d9e2699c22a6502ffe20123a9ef45
# Parent 42e268da38b961ed8b9edf02308a8a85d4456bf3
x86, hvm: Make host TscInvariant CPUID flag visible to guest by default.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
tools/libxc/xc_cpuid_x86.c | 8 ++++++++
1 files changed, 8 insertions(+)
diff -r 42e268da38b9 -r e8483c7f668d tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c Mon Nov 09 08:19:55 2009 +0000
+++ b/tools/libxc/xc_cpuid_x86.c Mon Nov 09 18:54:27 2009 +0000
@@ -224,6 +224,14 @@ static void xc_cpuid_hvm_policy(
clear_bit(X86_FEATURE_NX, regs[3]);
break;
+ case 0x80000007:
+ /*
+ * Keep only TSCInvariant. This may be cleared by the hypervisor
+ * depending on guest TSC and migration settings.
+ */
+ regs[0] = regs[1] = regs[2] = 0;
+ regs[3] &= 1u<<8;
+ break;
case 0x80000008:
regs[0] &= 0x0000ffffu;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86, hvm: Make host TscInvariant CPUID flag visible to guest by default.,
Xen patchbot-unstable <=
|
|
|
|
|