Skip to contentSkip to conversation

kmemcheck: use set_memory_4k() on x86_64 only

PATCH New Vegard Nossum 1 participant 1 message Oct 5, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kmemcheck: use set_memory_4k() on x86_64 only

Quoted 1 line

From 5bce9b1674e84ff36ba8f5a390b2ad30cd42b29a Mon Sep 17 00:00:00 2001

From: Vegard Nossum <[email protected]>
Date: Wed, 1 Oct 2008 18:36:42 +0200
Subject: [PATCH] kmemcheck: use set_memory_4k() on x86_64 only

x86_32 already disables PSE capabilities and is fine. We need this to avoid the BUG in cache-flushing SMP call.

---
 arch/x86/mm/kmemcheck/kmemcheck.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/mm/kmemcheck/kmemcheck.c +2 -0
index 5a08a70..d649aa7 100644
@@ -295,7 +295,9 @@ void kmemcheck_hide_pages(struct page *p, unsigned int n)
 {
 	unsigned int i;
 
+#ifdef CONFIG_X86_64
 	set_memory_4k((unsigned long) page_address(p), n);
+#endif
 
 	for (i = 0; i < n; ++i) {
 		unsigned long address;
Signature · 1 line
1.5.5.1