LKML Archive on
help / color / mirror / Atom feed
From: Chuck Ebbert <>
To: Ingo Molnar <>
Cc: Yinghai Lu <>,
Subject: [patch] x86: Kill bogus MTRR warning when running under vmware
Date: Fri, 31 Oct 2008 17:03:55 -0400	[thread overview]
Message-ID: <> (raw)

x86: Kill bogus MTRR warning when running under vmware

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


Signed-off-by: Chuck Ebbert <>

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));

             reply	other threads:[~2008-10-31 21:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 21:03 Chuck Ebbert [this message]
2008-11-03  8:48 ` [patch] x86: Kill bogus MTRR warning when running under vmware Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).