Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Matt Fleming
On Tue, 24 Feb, at 04:31:27PM, Yinghai Lu wrote: > On Tue, Feb 24, 2015 at 1:55 PM, Matt Fleming > wrote: > > On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: > >> +Field name: ext_code32_start > >> +Type:modify (optional, reloc) > >> +Offset/size: 0x268/4 > >> +Protocol:

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Matt Fleming
On Wed, 25 Feb, at 11:31:32AM, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: > > > Index: linux-2.6/arch/x86/boot/header.S > > > === > > > ---

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Ingo Molnar
* Matt Fleming wrote: > On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: > > Index: linux-2.6/arch/x86/boot/header.S > > === > > --- linux-2.6.orig/arch/x86/boot/header.S > > +++ linux-2.6/arch/x86/boot/header.S > > @@ -301,7

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Matt Fleming
On Tue, 24 Feb, at 04:31:27PM, Yinghai Lu wrote: On Tue, Feb 24, 2015 at 1:55 PM, Matt Fleming m...@codeblueprint.co.uk wrote: On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: +Field name: ext_code32_start +Type:modify (optional, reloc) +Offset/size: 0x268/4

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Matt Fleming
On Wed, 25 Feb, at 11:31:32AM, Ingo Molnar wrote: * Matt Fleming m...@codeblueprint.co.uk wrote: On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: Index: linux-2.6/arch/x86/boot/header.S === ---

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-25 Thread Ingo Molnar
* Matt Fleming m...@codeblueprint.co.uk wrote: On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: Index: linux-2.6/arch/x86/boot/header.S === --- linux-2.6.orig/arch/x86/boot/header.S +++ linux-2.6/arch/x86/boot/header.S @@

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-24 Thread Yinghai Lu
On Tue, Feb 24, 2015 at 1:55 PM, Matt Fleming wrote: > On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: >> +Field name: ext_code32_start >> +Type:modify (optional, reloc) >> +Offset/size: 0x268/4 >> +Protocol:2.14+ >> + >> + This field is the upper 32bits of load address

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-24 Thread Matt Fleming
On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: > Index: linux-2.6/arch/x86/boot/header.S > === > --- linux-2.6.orig/arch/x86/boot/header.S > +++ linux-2.6/arch/x86/boot/header.S > @@ -301,7 +301,7 @@ _start: > # Part 2 of the

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-24 Thread Matt Fleming
On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: Index: linux-2.6/arch/x86/boot/header.S === --- linux-2.6.orig/arch/x86/boot/header.S +++ linux-2.6/arch/x86/boot/header.S @@ -301,7 +301,7 @@ _start: # Part 2 of the

Re: [PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-24 Thread Yinghai Lu
On Tue, Feb 24, 2015 at 1:55 PM, Matt Fleming m...@codeblueprint.co.uk wrote: On Sun, 22 Feb, at 07:43:48PM, Yinghai Lu wrote: +Field name: ext_code32_start +Type:modify (optional, reloc) +Offset/size: 0x268/4 +Protocol:2.14+ + + This field is the upper 32bits of load

[PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-22 Thread Yinghai Lu
Now could use kexec to place kernel/boot_params/cmd_line/initrd above 4G, but that is with legacy interface with startup_64 directly. This patch will allow 64bit EFI kernel to be loaded above 4G and use EFI HANDOVER PROTOCOL to start the kernel. Current 32bit code32_start is used for passing

[PATCH v2] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-02-22 Thread Yinghai Lu
Now could use kexec to place kernel/boot_params/cmd_line/initrd above 4G, but that is with legacy interface with startup_64 directly. This patch will allow 64bit EFI kernel to be loaded above 4G and use EFI HANDOVER PROTOCOL to start the kernel. Current 32bit code32_start is used for passing