Skip to contentSkip to conversation

pvh: disable MTRR feature on cpuid for Dom0

PATCH New Roger Pau Monne 1 participant 1 message Dec 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pvh: disable MTRR feature on cpuid for Dom0

MTRR is not available for PVH Dom0, so prevent cpuid from reporting it as an available feature.

Cc George Dunlap <[email protected]>
Cc Mukesh Rathor <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Keir Fraser <[email protected]>

---
This should go in after Mukesh Dom0 series, or merged into it.

---
 xen/arch/x86/traps.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
xen/arch/x86/traps.c +2 -0
index 940bc33..3f7a3c7 100644
@@ -796,6 +796,8 @@ void pv_cpuid(struct cpu_user_regs *regs)
         __clear_bit(X86_FEATURE_DS, &d);
         __clear_bit(X86_FEATURE_ACC, &d);
         __clear_bit(X86_FEATURE_PBE, &d);
+        if ( is_pvh_vcpu(current) )
+            __clear_bit(X86_FEATURE_MTRR, &d);
 
         __clear_bit(X86_FEATURE_DTES64 % 32, &c);
         __clear_bit(X86_FEATURE_MWAIT % 32, &c);
Signature · 7 lines
1.7.7.5 (Apple Git-26)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel