Re: [PATCH 0/6] grub-xen: support booting huge pv-domains

2015-11-16 Thread Juergen Gross
e spam folder. Juergen > > Le 16 nov. 2015 6:47 AM, "Juergen Gross" <jgr...@suse.com > <mailto:jgr...@suse.com>> a écrit : > > On 02/11/15 06:51, Juergen Gross wrote: > > The Xen hypervisor supports starting a dom0 with large memory (up to >

Re: [PATCH 0/6] grub-xen: support booting huge pv-domains

2015-11-16 Thread Juergen Gross
On 02/11/15 06:51, Juergen Gross wrote: > The Xen hypervisor supports starting a dom0 with large memory (up to > the TB range) by not including the initrd and p2m list in the initial > kernel mapping. Especially the p2m list can grow larger than the > available virtual space in the ini

Re: [PATCH 0/6] grub-xen: support booting huge pv-domains

2015-11-08 Thread Juergen Gross
Ping? On 11/02/2015 06:51 AM, Juergen Gross wrote: The Xen hypervisor supports starting a dom0 with large memory (up to the TB range) by not including the initrd and p2m list in the initial kernel mapping. Especially the p2m list can grow larger than the available virtual space in the initial

[PATCH 2/6] xen: factor out allocation of special pages into separate function

2015-11-02 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> ---

[PATCH 4/6] xen: add capability to load initrd outside of initial mapping

2015-11-02 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c| 56 ++ grub-core/loader/i386/xen_fileXX.c | 3 ++ include/grub/xen_file.h|

[PATCH 6/6] xen: add capability to load p2m list outside of kernel mapping

2015-11-02 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386

[PATCH 0/6] grub-xen: support booting huge pv-domains

2015-11-02 Thread Juergen Gross
(kernel supporting unmapped initrd and p2m) - 900GB 64 bit domU (kernel supporting unmapped initrd and p2m) Juergen Gross (6): xen: factor out p2m list allocation into separate function xen: factor out allocation of special pages into separate function xen: factor out allocation of page tables

[PATCH 5/6] xen: modify page table construction

2015-11-02 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/lib/i386/xen/relocator.S | 47 +++--- grub-core/lib/x86_64/xen/relocator.S | 41 +++-- grub-core/l

[PATCH 3/6] xen: factor out allocation of page tables into separate function

2015-11-02 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.

Re: [PATCH 0/6] grub-xen: support booting huge pv-domains

2016-01-05 Thread Juergen Gross
On 02/11/15 06:51, Juergen Gross wrote: > The Xen hypervisor supports starting a dom0 with large memory (up to > the TB range) by not including the initrd and p2m list in the initial > kernel mapping. Especially the p2m list can grow larger than the > available virtual space in the ini

[PATCH v2 3/6] xen: factor out allocation of page tables into separate function

2016-02-10 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.

[PATCH v2 1/6] xen: factor out p2m list allocation into separate function

2016-02-10 Thread Juergen Gross
as those are needed only in case of the p2m list not being mapped by the initial kernel mapping. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c | 70 ++--- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git

[PATCH v2 5/6] xen: modify page table construction

2016-02-10 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/lib/i386/xen/relocator.S | 47 +++--- grub-core/lib/x86_64/xen/relocator.S | 44 +++-- grub-core/l

[PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-10 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c| 56 ++ grub-core/loader/i386/xen_fileXX.c | 3 ++ include/grub/xen_file.h|

[PATCH v2 0/6] grub-xen: support booting huge pv-domains

2016-02-10 Thread Juergen Gross
(kernel supporting unmapped initrd and p2m) - 900GB 64 bit domU (kernel supporting unmapped initrd and p2m) Changes in V2: - rebased patch 5 to current master Juergen Gross (6): xen: factor out p2m list allocation into separate function xen: factor out allocation of special pages into separate

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-11 Thread Juergen Gross
On 11/02/16 18:25, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 03:13:40PM +0100, Juergen Gross wrote: >> On 11/02/16 13:33, Daniel Kiper wrote: >>> On Thu, Feb 11, 2016 at 08:53:24AM +0100, Juergen Gross wrote: >>>> Modern pvops linux kernels support an ini

Re: [PATCH v2 3/6] xen: factor out allocation of page tables into separate function

2016-02-11 Thread Juergen Gross
On 11/02/16 18:14, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 01:53:51PM +0100, Juergen Gross wrote: >> On 11/02/16 13:27, Daniel Kiper wrote: >>> On Thu, Feb 11, 2016 at 08:53:23AM +0100, Juergen Gross wrote: >>>> Do the allocation of page tables in a separate

Re: [PATCH v2 1/6] xen: factor out p2m list allocation into separate function

2016-02-11 Thread Juergen Gross
On 11/02/16 18:09, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 01:38:10PM +0100, Juergen Gross wrote: >> On 11/02/16 13:19, Daniel Kiper wrote: >>> On Thu, Feb 11, 2016 at 08:53:21AM +0100, Juergen Gross wrote: >>>> Do the p2m list allocation of the to

[PATCH v2 6/6] xen: add capability to load p2m list outside of kernel mapping

2016-02-10 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386

[PATCH v2 2/6] xen: factor out allocation of special pages into separate function

2016-02-10 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> ---

Re: [PATCH v2 5/6] xen: modify page table construction

2016-02-11 Thread Juergen Gross
On 11/02/16 13:47, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 08:53:25AM +0100, Juergen Gross wrote: >> Modify the page table construction to allow multiple virtual regions >> to be mapped. This is done as preparation for removing the p2m list >> from the initial ke

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-12 Thread Juergen Gross
On 12/02/16 13:24, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 11.02.2016 15:13, Juergen Gross wrote: >> On 11/02/16 13:33, Daniel Kiper wrote: >>> On Thu, Feb 11, 2016 at 08:53:24AM +0100, Juergen Gross wrote: >>>> Modern pvops linux kernels support an initrd n

Re: [PATCH v2 1/6] xen: factor out p2m list allocation into separate function

2016-02-11 Thread Juergen Gross
On 11/02/16 13:19, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 08:53:21AM +0100, Juergen Gross wrote: >> Do the p2m list allocation of the to be loaded kernel in a separate >> function. This will allow doing the p2m list allocation at different >> times of the boot p

Re: [PATCH v2 2/6] xen: factor out allocation of special pages into separate function

2016-02-11 Thread Juergen Gross
On 11/02/16 13:21, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 08:53:22AM +0100, Juergen Gross wrote: >> Do the allocation of special pages (start info, console and xenbus >> ring buffers) in a separate function. This will allow to do the >> allocation at different times of

Re: [PATCH v2 3/6] xen: factor out allocation of page tables into separate function

2016-02-11 Thread Juergen Gross
On 11/02/16 13:27, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 08:53:23AM +0100, Juergen Gross wrote: >> Do the allocation of page tables in a separate function. This will >> allow to do the allocation at different times of the boot preparations >> depending on th

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-11 Thread Juergen Gross
On 11/02/16 13:33, Daniel Kiper wrote: > On Thu, Feb 11, 2016 at 08:53:24AM +0100, Juergen Gross wrote: >> Modern pvops linux kernels support an initrd not covered by the initial >> mapping. This capability is flagged by an elf-note. >> >> In case the elf-note is se

Re: [PATCH v4 10/11] xen: modify page table construction

2016-02-22 Thread Juergen Gross
On 22/02/16 13:48, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 01:30:30PM +0100, Juergen Gross wrote: >> On 22/02/16 13:18, Daniel Kiper wrote: >>> On Mon, Feb 22, 2016 at 10:29:04AM +0100, Juergen Gross wrote: >>>> On 22/02/16 10:17, Daniel Kiper wrote: >>&g

Re: [PATCH v4 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-22 Thread Juergen Gross
On 22/02/16 13:24, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 10:18:38AM +0100, Juergen Gross wrote: >> On 22/02/16 09:42, Daniel Kiper wrote: >>> On Mon, Feb 22, 2016 at 07:03:17AM +0100, Juergen Gross wrote: >>>> Modern pvops linux kernels support an ini

Re: [PATCH v4 10/11] xen: modify page table construction

2016-02-22 Thread Juergen Gross
On 22/02/16 13:18, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 10:29:04AM +0100, Juergen Gross wrote: >> On 22/02/16 10:17, Daniel Kiper wrote: >>> On Mon, Feb 22, 2016 at 07:03:18AM +0100, Juergen Gross wrote: >>>> Modify the page table construction to

Re: [PATCH v4 10/11] xen: modify page table construction

2016-02-29 Thread Juergen Gross
On 25/02/16 19:33, Andrei Borzenkov wrote: > 22.02.2016 16:14, Juergen Gross пишет: >> On 22/02/16 13:48, Daniel Kiper wrote: >>> On Mon, Feb 22, 2016 at 01:30:30PM +0100, Juergen Gross wrote: >>>> On 22/02/16 13:18, Daniel Kiper wrote: >>>>> On Mon, Fe

Re: [PATCH v5 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-29 Thread Juergen Gross
On 26/02/16 16:41, Daniel Kiper wrote: > On Fri, Feb 26, 2016 at 03:28:21PM +0100, Juergen Gross wrote: >> On 26/02/16 15:00, Daniel Kiper wrote: >>> On Thu, Feb 25, 2016 at 04:33:46PM +0100, Juergen Gross wrote: >>>> On 25/02/16 13:47, Daniel Kiper wrote: >>&g

[PATCH v5 05/11] xen: synchronize xen header

2016-02-25 Thread Juergen Gross
Get actual version of include/xen/xen.h from the Xen repository in order to be able to use constants defined there. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- include/xen/arch-x86/xen-x86_32.h | 22 +++ include/xen/

[PATCH v5 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-25 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V5: let call grub_xen_alloc_final() all subfunctions unconditionally and let them decide whether they need to do anything V4: rename grub_xen_all

[PATCH v5 10/11] xen: modify page table construction

2016-02-25 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V4: align variables in assembly sources use separate structure define as requested by Daniel Kiper V

[PATCH v5 03/11] xen: reduce number of global variables in xen loader

2016-02-25 Thread Juergen Gross
The loader for xen paravirtualized environment is using lots of global variables. Reduce the number by making them either local or by putting them into a single state structure. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --

[PATCH v5 00/11] grub-xen: support booting huge pv-domains

2016-02-25 Thread Juergen Gross
by Daniel Kiper - added new patch 4 (sync with new Xen headers) in order to use constants in assembly code - modified patch 9 (was patch 5) to use constants instead of numbers as requested by Daniel Kiper Changes in V2: - rebased patch 5 to current master Juergen Gross (11): xen: make xen loader

[PATCH v5 02/11] xen: avoid memleaks on error

2016-02-25 Thread Juergen Gross
When loading a Xen pv-kernel avoid memory leaks in case of errors. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V5: set grub_errno to GRUB_ERR_NONE to avoid false error reports as requested by Daniel Kiper --- grub-core/loader/i386/xen.c| 2 +- grub-core/loade

[PATCH v5 07/11] xen: factor out allocation of special pages into separate function

2016-02-25 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

[PATCH v5 04/11] xen: add elfnote.h to avoid using numbers instead of constants

2016-02-25 Thread Juergen Gross
for that purpose. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen_fileXX.c | 19 +-- include/xen/elfnote.h | 281 + 2 files changed, 291 insertions(+), 9 deletion

[PATCH v5 08/11] xen: factor out allocation of page tables into separate function

2016-02-25 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@o

[PATCH v5 11/11] xen: add capability to load p2m list outside of kernel mapping

2016-02-25 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <

[PATCH v5 06/11] xen: factor out p2m list allocation into separate function

2016-02-25 Thread Juergen Gross
as those are needed only in case of the p2m list not being mapped by the initial kernel mapping. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen.c | 87 ++--- 1 file

[PATCH v5 01/11] xen: make xen loader callable multiple times

2016-02-25 Thread Juergen Gross
The loader for xen paravirtualized environment isn't callable multiple times as it won't free any memory in case of failure. Call grub_relocator_unload() as other modules do it before allocating a new relocator or when unloading the module. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

Re: [PATCH v4 10/11] xen: modify page table construction

2016-02-29 Thread Juergen Gross
On 29/02/16 10:13, Juergen Gross wrote: > On 25/02/16 19:33, Andrei Borzenkov wrote: >> 22.02.2016 16:14, Juergen Gross пишет: >>> On 22/02/16 13:48, Daniel Kiper wrote: >>>> On Mon, Feb 22, 2016 at 01:30:30PM +0100, Juergen Gross wrote: >>>>> On 22/0

Re: [PATCH v5 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-29 Thread Juergen Gross
On 29/02/16 16:43, Daniel Kiper wrote: > On Mon, Feb 29, 2016 at 09:27:42AM +0100, Juergen Gross wrote: >> On 26/02/16 16:41, Daniel Kiper wrote: >>> On Fri, Feb 26, 2016 at 03:28:21PM +0100, Juergen Gross wrote: >>>> On 26/02/16 15:00, Daniel Kiper wrote: >>&g

Re: [PATCH v5 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-26 Thread Juergen Gross
On 26/02/16 15:00, Daniel Kiper wrote: > On Thu, Feb 25, 2016 at 04:33:46PM +0100, Juergen Gross wrote: >> On 25/02/16 13:47, Daniel Kiper wrote: >>> On Thu, Feb 25, 2016 at 12:33:35PM +0100, Juergen Gross wrote: >>>> Modern pvops linux kernels support an ini

Re: [PATCH v5 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-25 Thread Juergen Gross
On 25/02/16 13:47, Daniel Kiper wrote: > On Thu, Feb 25, 2016 at 12:33:35PM +0100, Juergen Gross wrote: >> Modern pvops linux kernels support an initrd not covered by the initial >> mapping. This capability is flagged by an elf-note. >> >> In case the elf-note is se

[PATCH v3 05/10] xen: factor out p2m list allocation into separate function

2016-02-17 Thread Juergen Gross
as those are needed only in case of the p2m list not being mapped by the initial kernel mapping. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c | 87 ++--- 1 file changed, 50 insertions(+), 37 deletions(-) diff --git

[PATCH v3 03/10] xen: add elfnote.h to avoid using numbers instead of constants

2016-02-17 Thread Juergen Gross
for that purpose. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen_fileXX.c | 19 +-- include/xen/elfnote.h | 281 + 2 files changed, 291 insertions(+), 9 deletions(-) create mode 100644 include/xen/elfnote.h diff --git

[PATCH v3 08/10] xen: add capability to load initrd outside of initial mapping

2016-02-17 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c| 61 ++ grub-core/loader/i386/xen_fileXX.c | 3 ++ include/grub/xen_file.h|

[PATCH v3 00/10] grub-xen: support booting huge pv-domains

2016-02-17 Thread Juergen Gross
in V2: - rebased patch 5 to current master Juergen Gross (10): xen: make xen loader callable multiple times xen: reduce number of global variables in xen loader xen: add elfnote.h to avoid using numbers instead of constants xen: synchronize xen header xen: factor out p2m list allocation

[PATCH v3 10/10] xen: add capability to load p2m list outside of kernel mapping

2016-02-17 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386

[PATCH v3 04/10] xen: synchronize xen header

2016-02-17 Thread Juergen Gross
Get actual version of include/xen/xen.h from the Xen repository in order to be able to use constants defined there. Signed-off-by: Juergen Gross <jgr...@suse.com> --- include/xen/arch-x86/xen-x86_32.h | 22 +++ include/xen/arch-x86/xen-x86_64.h | 8 +-- include/xen

[PATCH v3 07/10] xen: factor out allocation of page tables into separate function

2016-02-17 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.

[PATCH v3 06/10] xen: factor out allocation of special pages into separate function

2016-02-17 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> ---

[PATCH v3 02/10] xen: reduce number of global variables in xen loader

2016-02-17 Thread Juergen Gross
The loader for xen paravirtualized environment is using lots of global variables. Reduce the number by making them either local or by putting them into a single state structure. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c

[PATCH v3 09/10] xen: modify page table construction

2016-02-17 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V3: use constants instead of numbers as requested by Daniel Kiper add lots of comments to assembly code as req

[PATCH v3 01/10] xen: make xen loader callable multiple times

2016-02-17 Thread Juergen Gross
The loader for xen paravirtualized environment isn't callable multiple times as it won't free any memory in case of failure. Call grub_relocator_unload() as other modules do it before allocating a new relocator or when unloading the module. Signed-off-by: Juergen Gross <jgr...@suse.

Re: [PATCH v3 01/10] xen: make xen loader callable multiple times

2016-02-18 Thread Juergen Gross
On 18/02/16 11:12, Daniel Kiper wrote: > On Wed, Feb 17, 2016 at 06:19:28PM +0100, Juergen Gross wrote: >> The loader for xen paravirtualized environment isn't callable multiple >> times as it won't free any memory in case of failure. >> >> Call grub_relocator_u

Re: [PATCH v3 02/10] xen: reduce number of global variables in xen loader

2016-02-18 Thread Juergen Gross
On 18/02/16 11:22, Daniel Kiper wrote: > On Wed, Feb 17, 2016 at 06:19:29PM +0100, Juergen Gross wrote: >> The loader for xen paravirtualized environment is using lots of global >> variables. Reduce the number by making them either local or by putting >> them into a s

Re: [PATCH v3 03/10] xen: add elfnote.h to avoid using numbers instead of constants

2016-02-18 Thread Juergen Gross
On 18/02/16 11:30, Daniel Kiper wrote: > On Wed, Feb 17, 2016 at 06:19:30PM +0100, Juergen Gross wrote: >> Various features and parameters of a pv-kernel are specified via >> elf notes in the kernel image. Those notes are part of the interface >> between the Xen hype

Re: [PATCH v3 08/10] xen: add capability to load initrd outside of initial mapping

2016-02-18 Thread Juergen Gross
On 18/02/16 12:18, Daniel Kiper wrote: > On Wed, Feb 17, 2016 at 06:19:35PM +0100, Juergen Gross wrote: >> Modern pvops linux kernels support an initrd not covered by the initial >> mapping. This capability is flagged by an elf-note. >> >> In case the elf-note is se

Re: [Xen-devel] [PATCH v3 02/10] xen: reduce number of global variables in xen loader

2016-02-18 Thread Juergen Gross
On 18/02/16 18:00, Lennart Sorensen wrote: > On Thu, Feb 18, 2016 at 11:34:49AM +0100, Juergen Gross wrote: >> On 18/02/16 11:22, Daniel Kiper wrote: >>> On Wed, Feb 17, 2016 at 06:19:29PM +0100, Juergen Gross wrote: >>>> The loader for xen paravirtualized envir

Re: [PATCH v3 09/10] xen: modify page table construction

2016-02-18 Thread Juergen Gross
On 18/02/16 17:40, Daniel Kiper wrote: > On Wed, Feb 17, 2016 at 06:19:36PM +0100, Juergen Gross wrote: >> Modify the page table construction to allow multiple virtual regions >> to be mapped. This is done as preparation for removing the p2m list >> from the initial ke

Re: [PATCH v3 01/10] xen: make xen loader callable multiple times

2016-02-18 Thread Juergen Gross
On 18/02/16 17:58, Daniel Kiper wrote: > On Thu, Feb 18, 2016 at 11:32:16AM +0100, Juergen Gross wrote: >> On 18/02/16 11:12, Daniel Kiper wrote: >>> On Wed, Feb 17, 2016 at 06:19:28PM +0100, Juergen Gross wrote: >>>> The loader for xen paravirtualized envir

Re: [PATCH v4 02/11] xen: avoid memleaks on error

2016-02-22 Thread Juergen Gross
On 22/02/16 09:24, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 07:03:10AM +0100, Juergen Gross wrote: >> When loading a Xen pv-kernel avoid memory leaks in case of errors. >> >> Signed-off-by: Juergen Gross <jgr...@suse.com> >> --- >> grub-core/loader/

Re: [PATCH v4 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-22 Thread Juergen Gross
On 22/02/16 09:42, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 07:03:17AM +0100, Juergen Gross wrote: >> Modern pvops linux kernels support an initrd not covered by the initial >> mapping. This capability is flagged by an elf-note. >> >> In case the elf-note is se

[PATCH v4 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-21 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- V4: rename grub_xen_alloc_end() to grub_xen_alloc_final() --- grub-core/loader/i386/xen.c

[PATCH v4 03/11] xen: reduce number of global variables in xen loader

2016-02-21 Thread Juergen Gross
The loader for xen paravirtualized environment is using lots of global variables. Reduce the number by making them either local or by putting them into a single state structure. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --

[PATCH v4 02/11] xen: avoid memleaks on error

2016-02-21 Thread Juergen Gross
When loading a Xen pv-kernel avoid memory leaks in case of errors. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/xen.c| 2 +- grub-core/loader/i386/xen_fileXX.c | 17 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gru

[PATCH v4 07/11] xen: factor out allocation of special pages into separate function

2016-02-21 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

[PATCH v4 04/11] xen: add elfnote.h to avoid using numbers instead of constants

2016-02-21 Thread Juergen Gross
for that purpose. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen_fileXX.c | 19 +-- include/xen/elfnote.h | 281 + 2 files changed, 291 insertions(+), 9 deletion

[PATCH v4 00/11] grub-xen: support booting huge pv-domains

2016-02-21 Thread Juergen Gross
) as requested by Daniel Kiper - added new patch 4 (sync with new Xen headers) in order to use constants in assembly code - modified patch 9 (was patch 5) to use constants instead of numbers as requested by Daniel Kiper Changes in V2: - rebased patch 5 to current master Juergen Gross (11): xen

[PATCH v4 01/11] xen: make xen loader callable multiple times

2016-02-21 Thread Juergen Gross
The loader for xen paravirtualized environment isn't callable multiple times as it won't free any memory in case of failure. Call grub_relocator_unload() as other modules do it before allocating a new relocator or when unloading the module. Signed-off-by: Juergen Gross <jgr...@suse.com>

[PATCH v4 10/11] xen: modify page table construction

2016-02-21 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V4: align variables in assembly sources use separate structure define as requested by Daniel Kiper V

[PATCH v4 11/11] xen: add capability to load p2m list outside of kernel mapping

2016-02-21 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <

[PATCH v4 05/11] xen: synchronize xen header

2016-02-21 Thread Juergen Gross
Get actual version of include/xen/xen.h from the Xen repository in order to be able to use constants defined there. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- include/xen/arch-x86/xen-x86_32.h | 22 +++ include/xen/

Re: [PATCH v4 10/11] xen: modify page table construction

2016-02-22 Thread Juergen Gross
On 22/02/16 10:17, Daniel Kiper wrote: > On Mon, Feb 22, 2016 at 07:03:18AM +0100, Juergen Gross wrote: >> Modify the page table construction to allow multiple virtual regions >> to be mapped. This is done as preparation for removing the p2m list >> from the initial ke

Re: [Xen-devel] [PATCH v4 10/11] xen: modify page table construction

2016-02-29 Thread Juergen Gross
On 01/03/16 04:52, Andrei Borzenkov wrote: > 29.02.2016 15:19, Juergen Gross пишет: >> On 29/02/16 10:13, Juergen Gross wrote: >>> On 25/02/16 19:33, Andrei Borzenkov wrote: >>>> 22.02.2016 16:14, Juergen Gross пишет: >>>>> On 22/02/16 13:48, Daniel K

[PATCH v6 05/11] xen: synchronize xen header

2016-02-29 Thread Juergen Gross
Get actual version of include/xen/xen.h from the Xen repository in order to be able to use constants defined there. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- include/xen/arch-x86/xen-x86_32.h | 22 +++ include/xen/

[PATCH v6 02/11] xen: avoid memleaks on error

2016-02-29 Thread Juergen Gross
When loading a Xen pv-kernel avoid memory leaks in case of errors. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- V5: set grub_errno to GRUB_ERR_NONE to avoid false error reports as requested by Daniel Kiper --- grub-core

[PATCH v6 03/11] xen: reduce number of global variables in xen loader

2016-02-29 Thread Juergen Gross
The loader for xen paravirtualized environment is using lots of global variables. Reduce the number by making them either local or by putting them into a single state structure. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --

[PATCH v6 01/11] xen: make xen loader callable multiple times

2016-02-29 Thread Juergen Gross
The loader for xen paravirtualized environment isn't callable multiple times as it won't free any memory in case of failure. Call grub_relocator_unload() as other modules do it before allocating a new relocator or when unloading the module. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

[PATCH v6 04/11] xen: add elfnote.h to avoid using numbers instead of constants

2016-02-29 Thread Juergen Gross
for that purpose. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen_fileXX.c | 19 +-- include/xen/elfnote.h | 281 + 2 files changed, 291 insertions(+), 9 deletion

[PATCH v6 00/11] grub-xen: support booting huge pv-domains

2016-02-29 Thread Juergen Gross
in V2: - rebased patch 5 to current master Juergen Gross (11): xen: make xen loader callable multiple times xen: avoid memleaks on error xen: reduce number of global variables in xen loader xen: add elfnote.h to avoid using numbers instead of constants xen: synchronize xen header xen

[PATCH v6 06/11] xen: factor out p2m list allocation into separate function

2016-02-29 Thread Juergen Gross
as those are needed only in case of the p2m list not being mapped by the initial kernel mapping. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen.c | 87 ++--- 1 file

[PATCH v6 07/11] xen: factor out allocation of special pages into separate function

2016-02-29 Thread Juergen Gross
Do the allocation of special pages (start info, console and xenbus ring buffers) in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

[PATCH v6 09/11] xen: add capability to load initrd outside of initial mapping

2016-02-29 Thread Juergen Gross
, as the initial mapping is limited to 2GB and it is containing the p2m list. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- V6: rename grub_xen_alloc_final() to grub_xen_alloc_boot_data() V5: let call grub_xen_alloc_final() all

[PATCH v6 08/11] xen: factor out allocation of page tables into separate function

2016-02-29 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@o

[PATCH v6 10/11] xen: modify page table construction

2016-02-29 Thread Juergen Gross
. The interface to the assembler level of the relocator has to be changed in order to be able to process multiple page table areas. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- V4: align variables in assembly sources use separa

[PATCH v6 11/11] xen: add capability to load p2m list outside of kernel mapping

2016-02-29 Thread Juergen Gross
mapping, but map it to the given address. This will allow to support domains with larger memory, as the kernel mapping is limited to 2GB and a domain with huge memory in the TB range will have a p2m list larger than this. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <

Re: Bugs and tasks for 2.02[~rc1]

2016-03-11 Thread Juergen Gross
On 11/03/16 16:47, Vladimir 'phcoder' Serbinenko wrote: > > > On Wednesday, March 9, 2016, Daniel Kiper <daniel.ki...@oracle.com > <mailto:daniel.ki...@oracle.com>> wrote: > > On Thu, Mar 03, 2016 at 03:47:17PM +0100, Juergen Gross wrote: > >

Re: [GRUB2 PATCH v3 4/4] multiboot2: Add support for relocatable images

2016-03-04 Thread Juergen Gross
On 02/03/16 17:51, Daniel Kiper wrote: > Currently multiboot2 protocol loads image exactly at address specified in > ELF or multiboot2 header. This solution works quite well on legacy BIOS > platforms. It is possible because memory regions are placed at predictable > addresses (though I was not

Re: [PATCH v4 10/11] xen: modify page table construction

2016-03-02 Thread Juergen Gross
On 02/03/16 10:12, Daniel Kiper wrote: > On Mon, Feb 29, 2016 at 01:19:27PM +0100, Juergen Gross wrote: >> On 29/02/16 10:13, Juergen Gross wrote: >>> On 25/02/16 19:33, Andrei Borzenkov wrote: >>>> 22.02.2016 16:14, Juergen Gross пишет: >>>>> On 22/0

Re: [PATCH v6 09/11] xen: add capability to load initrd outside of initial mapping

2016-03-02 Thread Juergen Gross
On 02/03/16 08:56, Daniel Kiper wrote: > On Tue, Mar 01, 2016 at 08:55:09AM +0100, Juergen Gross wrote: >> Modern pvops linux kernels support an initrd not covered by the initial >> mapping. This capability is flagged by an elf-note. >> >> In case the elf-note is se

[PATCH v7 05/11] xen: synchronize xen header

2016-03-03 Thread Juergen Gross
Get actual version of include/xen/xen.h from the Xen repository in order to be able to use constants defined there. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- include/xen/arch-x86/xen-x86_32.h | 22 +++ include/xen/

[PATCH v7 08/11] xen: factor out allocation of page tables into separate function

2016-03-03 Thread Juergen Gross
Do the allocation of page tables in a separate function. This will allow to do the allocation at different times of the boot preparations depending on the features the kernel is supporting. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@o

[PATCH v7 00/11] grub-xen: support booting huge pv-domains

2016-03-03 Thread Juergen Gross
) as requested by Daniel Kiper - added new patch 4 (sync with new Xen headers) in order to use constants in assembly code - modified patch 9 (was patch 5) to use constants instead of numbers as requested by Daniel Kiper Changes in V2: - rebased patch 5 to current master Juergen Gross (11): xen: make

[PATCH v7 06/11] xen: factor out p2m list allocation into separate function

2016-03-03 Thread Juergen Gross
as those are needed only in case of the p2m list not being mapped by the initial kernel mapping. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> --- grub-core/loader/i386/xen.c | 87 ++--- 1 file

[PATCH v7 01/11] xen: make xen loader callable multiple times

2016-03-03 Thread Juergen Gross
The loader for xen paravirtualized environment isn't callable multiple times as it won't free any memory in case of failure. Call grub_relocator_unload() as other modules do it before allocating a new relocator or when unloading the module. Signed-off-by: Juergen Gross <jgr...@suse.com> Re

  1   2   3   >