xen-devel
[Xen-devel] [patch 7/8] Add a bootparameter to reserve high linear addre
Add a bootparameter 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@xxxxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---
Documentation/kernel-parameters.txt | 5 +++++
arch/i386/kernel/setup.c | 19 +++++++++++++++++++
2 files changed, 24 insertions(+)
===================================================================
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1357,6 +1357,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
===================================================================
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -160,6 +160,12 @@ static char command_line[COMMAND_LINE_SI
static char command_line[COMMAND_LINE_SIZE];
unsigned char __initdata boot_params[PARAM_SIZE];
+
+static int __init setup_reservetop(char *s)
+{
+ return 1;
+}
+__setup("reservetop", setup_reservetop);
static struct resource data_resource = {
.name = "Kernel data",
@@ -917,6 +923,19 @@ static void __init parse_cmdline_early (
else if (!memcmp(from, "vmalloc=", 8))
__VMALLOC_RESERVE = memparse(from+8, &from);
+ /*
+ * 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.
+ * This hole must be a multiple of 4M.
+ */
+ else if (!memcmp(from, "reservetop=", 11)) {
+ unsigned long reserve = memparse(from+11, &from);
+ reserve &= ~0x3fffff;
+ reserve_top_address(reserve);
+ }
+
next_char:
c = *(from++);
if (!c)
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., (continued)
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Andi Kleen
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Christoph Lameter
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Andi Kleen
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Christoph Lameter
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Chris Wright
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Andi Kleen
- [Xen-devel] Re: [patch 2/8] Implement always-locked bit ops, for memory shared with an SMP hypervisor., Christoph Lameter
[Xen-devel] [patch 3/8] Allow a kernel to not be in ring 0., Jeremy Fitzhardinge
[Xen-devel] [patch 6/8] Make __FIXADDR_TOP variable to allow it to make space for a hypervisor., Jeremy Fitzhardinge
[Xen-devel] [patch 5/8] Roll all the cpuid asm into one __cpuid call., Jeremy Fitzhardinge
[Xen-devel] [patch 7/8] Add a bootparameter to reserve high linear address space.,
Jeremy Fitzhardinge <=
[Xen-devel] Re: [patch 7/8] Add a bootparameter to reserve high linear address space., Pavel Machek
[Xen-devel] [patch 8/8] Put .note.* sections into a PT_NOTE segment in vmlinux., Jeremy Fitzhardinge
|
|
|