summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Amsden2006-09-26 08:32:25 +0200
committerLinus Torvalds2006-09-26 17:48:55 +0200
commit461a9afff5e731d6337c0f5b08a1e727ccd57e0a (patch)
tree2bd69049bb1c3e8eac7ccd753bf8f253a9ac19b6
parent[PATCH] x86: make __FIXADDR_TOP variable to allow it to make space for a hype... (diff)
downloadkernel-qcow2-linux-461a9afff5e731d6337c0f5b08a1e727ccd57e0a.tar.gz
kernel-qcow2-linux-461a9afff5e731d6337c0f5b08a1e727ccd57e0a.tar.xz
kernel-qcow2-linux-461a9afff5e731d6337c0f5b08a1e727ccd57e0a.zip
[PATCH] x86: add a bootparameter to reserve high linear address space
Add a boot parameter to reserve high linear address space for hypervisors. This is necessary to allow dynamically loaded hypervisor modules, which might not happen until userspace is already running, and also provides a useful tool to benchmark the performance impact of reduced lowmem address space. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--Documentation/kernel-parameters.txt5
-rw-r--r--arch/i386/kernel/setup.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 71d05f481727..766abdab94e7 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1363,6 +1363,11 @@ running once the system is up.
reserve= [KNL,BUGS] Force the kernel to ignore some iomem area
+ reservetop= [IA-32]
+ Format: nn[KMG]
+ Reserves a hole at the top of the kernel virtual
+ address space.
+
resume= [SWSUSP]
Specify the partition device for software suspend
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
index 060c68004bec..16d99444cf66 100644
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -935,6 +935,24 @@ static void __init parse_cmdline_early (char ** cmdline_p)
}
/*
+ * reservetop=size reserves a hole at the top of the kernel address space which
+ * a hypervisor can load into later. Needed for dynamically loaded hypervisors,
+ * so relocating the fixmap can be done before paging initialization.
+ */
+static int __init parse_reservetop(char *arg)
+{
+ unsigned long address;
+
+ if (!arg)
+ return -EINVAL;
+
+ address = memparse(arg, &arg);
+ reserve_top_address(address);
+ return 0;
+}
+early_param("reservetop", parse_reservetop);
+
+/*
* Callback for efi_memory_walk.
*/
static int __init