Skip to contentSkip to conversation

x86: Kill bogus MTRR warning when running under vmware

PATCH In review Chuck Ebbert 2 participants 2 messages Oct 31, 2008 – Nov 3, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Kill bogus MTRR warning when running under vmware

x86: Kill bogus MTRR warning when running under vmware

The warning is suppressed when running under KVM, but VMware guests also have empty MTRRs.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=468845

arch/x86/kernel/cpu/mtrr/main.c +1 -4
Index: linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c
===================================================================
@@ -1495,11 +1495,8 @@ int __init mtrr_trim_uncached_memory(uns
 	}
 
 	/* kvm/qemu doesn't have mtrr set right, don't trim them all */
-	if (!highest_pfn) {
-		WARN(!kvm_para_available(), KERN_WARNING
-				"WARNING: strange, CPU MTRRs all blank?\n");
+	if (!highest_pfn)
 		return 0;
-	}
 
 	/* check entries number */
 	memset(num, 0, sizeof(num));
#1 lore raw
Quoted 7 lines · Chuck Ebbert

x86: Kill bogus MTRR warning when running under vmware

The warning is suppressed when running under KVM, but VMware guests also have empty MTRRs.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=468845

we are working on proper "are we within vmware" detection support. Patches already exist and it is useful to know it for other reasons as wel.

Ingo