public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC, PATCH 7/24] i386 Vmi memory hole
@ 2006-03-13 18:04 Zachary Amsden
  2006-03-14  6:41 ` Chris Wright
  0 siblings, 1 reply; 13+ messages in thread
From: Zachary Amsden @ 2006-03-13 18:04 UTC (permalink / raw)
  To: Linus Torvalds, Linux Kernel Mailing List,
	Virtualization Mailing List, Xen-devel, Andrew Morton,
	Zachary Amsden, Dan Hecht, Dan Arai, Anne Holler,
	Pratap Subrahmanyam, Christopher Li, Joshua LeVasseur,
	Chris Wright, Rik Van Riel, Jyothy Reddy, Jack Lo, Kip Macy,
	Jan Beulich, Ky Srinivasan, Wim Coekaerts, Leendert van Doorn,
	Zachary Amsden

Create a configurable hole in the linear address space at the top
of memory.  A more advanced interface is needed to negotiate how
much space the hypervisor is allowed to steal, but in the end, it
seems most likely that a fixed constant size will be chosen for
the compiled kernel, potentially propagated to an information
page used by paravirtual initialization to determine interface
compatibility.

Signed-off-by: Zachary Amsden <zach@vmware.com>

Index: linux-2.6.16-rc3/arch/i386/Kconfig
===================================================================
--- linux-2.6.16-rc3.orig/arch/i386/Kconfig	2006-02-22 16:09:04.000000000 -0800
+++ linux-2.6.16-rc3/arch/i386/Kconfig	2006-02-22 16:33:27.000000000 -0800
@@ -201,6 +201,15 @@ config VMI_DEBUG
 
 endmenu
 
+config MEMORY_HOLE
+	int "Create hole at top of memory (0-256 MB)"
+	range 0 256
+	default "64" if X86_VMI
+	default "0" if !X86_VMI
+	help
+	   Useful for creating a hole in the top of memory when running
+	   inside of a virtual machine monitor.
+
 config ACPI_SRAT
 	bool
 	default y
Index: linux-2.6.16-rc3/include/asm-i386/fixmap.h
===================================================================
--- linux-2.6.16-rc3.orig/include/asm-i386/fixmap.h	2006-02-22 15:48:23.000000000 -0800
+++ linux-2.6.16-rc3/include/asm-i386/fixmap.h	2006-02-22 16:33:27.000000000 -0800
@@ -20,7 +20,7 @@
  * Leave one empty page between vmalloc'ed areas and
  * the start of the fixmap.
  */
-#define __FIXADDR_TOP	0xfffff000
+#define __FIXADDR_TOP	0xfffff000-(CONFIG_MEMORY_HOLE << 20)
 
 #ifndef __ASSEMBLY__
 #include <linux/kernel.h>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-03-15  9:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-13 18:04 [RFC, PATCH 7/24] i386 Vmi memory hole Zachary Amsden
2006-03-14  6:41 ` Chris Wright
2006-03-14  7:14   ` Zachary Amsden
2006-03-14 21:56     ` Chris Wright
2006-03-14 22:35       ` Zachary Amsden
2006-03-15  4:31         ` Chris Wright
2006-03-15  8:27           ` Gerd Hoffmann
2006-03-15  8:36             ` Zachary Amsden
2006-03-15  9:09               ` Chris Wright
2006-03-15  9:18                 ` Zachary Amsden
2006-03-15  9:41                   ` Chris Wright
2006-03-15  9:27               ` Gerd Hoffmann
2006-03-15  9:37                 ` Zachary Amsden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox