lkml.org 
[lkml]   [2008]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 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

Signed-off-by: Chuck Ebbert <cebbert@redhat.com>

Index: linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c
===================================================================
--- linux-2.6.27.noarch.orig/arch/x86/kernel/cpu/mtrr/main.c
+++ 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));

\
 
 \ /
  Last update: 2008-10-31 22:07    [W:0.036 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site