[PATCH v2 10/10] xen: mask the MTRR feature from the cpuid

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: stefano.stabellini
Date: Monday, October 4, 2010 - 4:28 am

From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

We don't want Linux to think that the cpu supports MTRRs when running
under Xen because MTRR operations could only be performed through
hypercalls.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 arch/x86/xen/enlighten.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 9efb004..d48a32b 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -243,6 +243,7 @@ static __init void xen_init_cpuid_mask(void)
 	cpuid_leaf1_edx_mask =
 		~((1 << X86_FEATURE_MCE)  |  /* disable MCE */
 		  (1 << X86_FEATURE_MCA)  |  /* disable MCA */
+		  (1 << X86_FEATURE_MTRR) |  /* disable MTRR */
 		  (1 << X86_FEATURE_ACC));   /* thermal monitoring */
 
 	if (!xen_initial_domain())
-- 
1.5.6.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2 00/10] xen: initial domain support, Stefano Stabellini, (Mon Oct 4, 4:27 am)
[PATCH v2 01/10] xen: remap GSIs as pirqs when running as ..., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 02/10] xen: remap MSIs into pirqs when running a ..., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 03/10] xen: map a dummy page for local apic and ..., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 04/10] xen: use vcpu_ops to setup cpu masks, stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 05/10] xen: Initialize xenbus for dom0., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 06/10] xen: add the direct mapping area for ISA ..., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 07/10] xen: introduce XEN_DOM0 as a silent option, stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 08/10] xen: use host E820 map for dom0, stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 09/10] xen: make hvc_xen console work for dom0., stefano.stabellini, (Mon Oct 4, 4:28 am)
[PATCH v2 10/10] xen: mask the MTRR feature from the cpuid, stefano.stabellini, (Mon Oct 4, 4:28 am)
Re: [Xen-devel] [PATCH v2 01/10] xen: remap GSIs as pirqs ..., Konrad Rzeszutek Wilk, (Mon Oct 4, 12:24 pm)
Re: [Xen-devel] [PATCH v2 01/10] xen: remap GSIs as pirqs ..., Stefano Stabellini, (Tue Oct 5, 6:11 am)
Re: [Xen-devel] [PATCH v2 01/10] xen: remap GSIs as pirqs ..., Konrad Rzeszutek Wilk, (Wed Oct 6, 9:50 am)
Re: [Xen-devel] [PATCH v2 01/10] xen: remap GSIs as pirqs ..., Stefano Stabellini, (Wed Oct 6, 10:53 am)