* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <44D1BAB8.8070509@vmware.com>
@ 2006-08-05 21:58 ` Andrew Morton
2006-08-05 22:52 ` Zachary Amsden
2006-08-05 23:17 ` Rusty Russell
0 siblings, 2 replies; 8+ messages in thread
From: Andrew Morton @ 2006-08-05 21:58 UTC (permalink / raw)
To: Zachary Amsden; +Cc: chrisw, virtualization, xen-devel, linux-kernel
On Thu, 03 Aug 2006 01:58:32 -0700
Zachary Amsden <zach@vmware.com> wrote:
> 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.
Andi has gone and rotorooted the x86 boot parameter handling in there.
This patch now looks like this:
From: Zachary Amsden <zach@vmware.com>
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>
---
Documentation/kernel-parameters.txt | 5 +++++
arch/i386/kernel/setup.c | 24 ++++++++++++++++++++++++
2 files changed, 29 insertions(+)
diff -puN arch/i386/kernel/setup.c~x86-add-a-bootparameter-to-reserve-high-linear-address-space arch/i386/kernel/setup.c
--- a/arch/i386/kernel/setup.c~x86-add-a-bootparameter-to-reserve-high-linear-address-space
+++ a/arch/i386/kernel/setup.c
@@ -149,6 +149,12 @@ static char command_line[COMMAND_LINE_SI
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",
.start = 0,
@@ -814,6 +820,24 @@ static int __init parse_vmalloc(char *ar
early_param("vmalloc", parse_vmalloc);
/*
+ * 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
diff -puN Documentation/kernel-parameters.txt~x86-add-a-bootparameter-to-reserve-high-linear-address-space Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt~x86-add-a-bootparameter-to-reserve-high-linear-address-space
+++ a/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
_
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
2006-08-05 21:58 ` [patch 7/8] Add a bootparameter to reserve high linear address space Andrew Morton
@ 2006-08-05 22:52 ` Zachary Amsden
2006-08-05 23:17 ` Rusty Russell
1 sibling, 0 replies; 8+ messages in thread
From: Zachary Amsden @ 2006-08-05 22:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: chrisw, virtualization, xen-devel, linux-kernel
Andrew Morton wrote:
> On Thu, 03 Aug 2006 01:58:32 -0700
> Zachary Amsden <zach@vmware.com> wrote:
>
>
>> 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.
>>
>
> Andi has gone and rotorooted the x86 boot parameter handling in there.
> This patch now looks like this:
>
The rototilled patch looks great. Acked.
Zach
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
2006-08-05 21:58 ` [patch 7/8] Add a bootparameter to reserve high linear address space Andrew Morton
2006-08-05 22:52 ` Zachary Amsden
@ 2006-08-05 23:17 ` Rusty Russell
1 sibling, 0 replies; 8+ messages in thread
From: Rusty Russell @ 2006-08-05 23:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: chrisw, xen-devel, linux-kernel, virtualization
On Sat, 2006-08-05 at 14:58 -0700, Andrew Morton wrote:
> On Thu, 03 Aug 2006 01:58:32 -0700
> Zachary Amsden <zach@vmware.com> wrote:
>
> > 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.
>
> Andi has gone and rotorooted the x86 boot parameter handling in there.
That was me, via Andi, but yep:
> diff -puN arch/i386/kernel/setup.c~x86-add-a-bootparameter-to-reserve-high-linear-address-space arch/i386/kernel/setup.c
> --- a/arch/i386/kernel/setup.c~x86-add-a-bootparameter-to-reserve-high-linear-address-space
> +++ a/arch/i386/kernel/setup.c
> @@ -149,6 +149,12 @@ static char command_line[COMMAND_LINE_SI
>
> 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",
> .start = 0,
Please remove this hunk: it's now junk.
Cheers,
Rusty.
--
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <20060803002518.595166293@xensource.com>
[not found] ` <20060802231912.ed77f930.akpm@osdl.org>
@ 2006-08-06 22:00 ` Pavel Machek
2006-08-06 22:02 ` Pavel Machek
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Pavel Machek @ 2006-08-06 22:00 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: akpm, virtualization, xen-devel, Chris Wright, linux-kernel
Hi!
> Add a bootparameter to reserve high linear address space for hypervisors.
> This is necessary to allow dynamically loaded hypervisor modules, which
Dynamically loaded hypervisor? Do we really want to support that?
Pavel
--
Thanks for all the (sleeping) penguins.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <20060803002518.595166293@xensource.com>
[not found] ` <20060802231912.ed77f930.akpm@osdl.org>
2006-08-06 22:00 ` Pavel Machek
@ 2006-08-06 22:02 ` Pavel Machek
[not found] ` <19700101001522.GA3999@ucw.cz>
2006-08-07 9:12 ` Pavel Machek
4 siblings, 0 replies; 8+ messages in thread
From: Pavel Machek @ 2006-08-06 22:02 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: akpm, linux-kernel, virtualization, xen-devel,
Jeremy Fitzhardinge, Zachary Amsden, Chris Wright
Hi!
> Add a bootparameter to reserve high linear address space for hypervisors.
> This is necessary to allow dynamically loaded hypervisor modules, which
Dynamically loaded hypervisor? Do we really want to support that?
Pavel
--
Thanks for all the (sleeping) penguins.
^ permalink raw reply [flat|nested] 8+ messages in thread[parent not found: <19700101001522.GA3999@ucw.cz>]
* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <19700101001522.GA3999@ucw.cz>
@ 2006-08-07 2:10 ` Andi Kleen
2010-05-04 23:37 ` Jeremy Fitzhardinge
1 sibling, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2006-08-07 2:10 UTC (permalink / raw)
To: virtualization; +Cc: akpm, Chris Wright, xen-devel, Pavel Machek, linux-kernel
On Thursday 01 January 1970 01:15, Pavel Machek wrote:
> Hi!
>
> > Add a bootparameter to reserve high linear address space for hypervisors.
> > This is necessary to allow dynamically loaded hypervisor modules, which
>
> Dynamically loaded hypervisor? Do we really want to support that?
I hope so. IMHO letting Linux boot first and then the Hypervisor is
a better design than the other way round which requires a lot of duplicated code.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <19700101001522.GA3999@ucw.cz>
2006-08-07 2:10 ` Andi Kleen
@ 2010-05-04 23:37 ` Jeremy Fitzhardinge
1 sibling, 0 replies; 8+ messages in thread
From: Jeremy Fitzhardinge @ 2010-05-04 23:37 UTC (permalink / raw)
To: Pavel Machek
Cc: akpm, Zachary Amsden, xen-devel, Jeremy Fitzhardinge,
linux-kernel, Chris Wright, virtualization
On 12/31/1969 04:15 PM, Pavel Machek wrote:
> Dynamically loaded hypervisor? Do we really want to support that?
>
(Missed this because your datestamp was 1969...)
The idea was that you could boot a guest under VMWare fully virtualized
then switch it to a VMI guest by loading a module. I don't think it
ever worked out - the transition was too trick to get right (especially
applying all the pvops patching to a live system).
J
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch 7/8] Add a bootparameter to reserve high linear address space.
[not found] ` <20060803002518.595166293@xensource.com>
` (3 preceding siblings ...)
[not found] ` <19700101001522.GA3999@ucw.cz>
@ 2006-08-07 9:12 ` Pavel Machek
4 siblings, 0 replies; 8+ messages in thread
From: Pavel Machek @ 2006-08-07 9:12 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: akpm, Zachary Amsden, Jeremy Fitzhardinge, xen-devel,
linux-kernel, Chris Wright, virtualization
Hi!
> Add a bootparameter to reserve high linear address space for hypervisors.
> This is necessary to allow dynamically loaded hypervisor modules, which
Dynamically loaded hypervisor? Do we really want to support that?
Pavel
--
Thanks for all the (sleeping) penguins.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-04 23:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060803002510.634721860@xensource.com>
[not found] ` <20060803002518.595166293@xensource.com>
[not found] ` <20060802231912.ed77f930.akpm@osdl.org>
[not found] ` <44D1A6B6.8040003@vmware.com>
[not found] ` <20060803004144.554d9882.akpm@osdl.org>
[not found] ` <44D1BAB8.8070509@vmware.com>
2006-08-05 21:58 ` [patch 7/8] Add a bootparameter to reserve high linear address space Andrew Morton
2006-08-05 22:52 ` Zachary Amsden
2006-08-05 23:17 ` Rusty Russell
2006-08-06 22:00 ` Pavel Machek
2006-08-06 22:02 ` Pavel Machek
[not found] ` <19700101001522.GA3999@ucw.cz>
2006-08-07 2:10 ` Andi Kleen
2010-05-04 23:37 ` Jeremy Fitzhardinge
2006-08-07 9:12 ` Pavel Machek
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).