From: Jeremy Fitzhardinge Date: Mon, 17 Mar 2008 23:37:21 +0000 (-0700) Subject: xen: no need for domU to worry about MCE/MCA X-Git-Tag: MMI-PSA29.97-13-9~35535^2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbe9e994c99ac9ac12d2b66ea42f44558f54fa52;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git xen: no need for domU to worry about MCE/MCA Mask MCE/MCA out of cpu caps. Its harmless to leave them there, but it does prevent the kernel from starting an unnecessary thread. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 943684566ebe..8c5ff24a492b 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -155,6 +155,8 @@ static void xen_cpuid(unsigned int *ax, unsigned int *bx, if (*ax == 1) maskedx = ~((1 << X86_FEATURE_APIC) | /* disable APIC */ (1 << X86_FEATURE_ACPI) | /* disable ACPI */ + (1 << X86_FEATURE_MCE) | /* disable MCE */ + (1 << X86_FEATURE_MCA) | /* disable MCA */ (1 << X86_FEATURE_ACC)); /* thermal monitoring */ asm(XEN_EMULATE_PREFIX "cpuid"