[Xen-devel] [MULTIBOOT2 DOC PATCH 02/10] multiboot2: Clarify meaning of information request header tag

2016-06-09 Thread Daniel Kiper
Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index 27e5a2f..a7e3584 100644 --- a/doc/multiboot.texi +++ b/doc/multiboo

[Xen-devel] [MULTIBOOT2 DOC PATCH 10/10] multiboot2: Bump version to 2.0

2016-06-09 Thread Daniel Kiper
.. and add 2016 to copyright. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- configure.ac |2 +- doc/multiboot.texi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b11961d..585b37a 100644 --- a/configure.ac

[Xen-devel] [MULTIBOOT2 DOC PATCH 06/10] multiboot2: Add description of support for relocatable images

2016-06-09 Thread Daniel Kiper
Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi | 56 doc/multiboot2.h | 24 ++ 2 files changed, 80 insertions(+) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index 1

[Xen-devel] [MULTIBOOT2 DOC PATCH 05/10] multiboot2: Add description of EFI image handle tags

2016-06-09 Thread Daniel Kiper
Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi | 28 doc/multiboot2.h | 16 2 files changed, 44 insertions(+) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index 1583b76..130176a 100644 ---

[Xen-devel] [MULTIBOOT2 DOC PATCH 00/10] multiboot2: Update documentation

2016-06-09 Thread Daniel Kiper
. configure.ac |2 +- doc/multiboot.texi | 255 ++--- doc/multiboot2.h | 42 3 files changed, 282 insertions(+), 17 deletions(-) Daniel Kiper (10): multiboot2: Remove redundant

[Xen-devel] [MULTIBOOT2 DOC PATCH 03/10] multiboot2: Fix description of EFI boot services tag

2016-06-09 Thread Daniel Kiper
Without this fix multiboot2 doc build fails. Additionally, add missing full stop at the end of sentence. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/multiboot.texi

[Xen-devel] [MULTIBOOT2 DOC PATCH 09/10] multiboot2: Add me to authors

2016-06-09 Thread Daniel Kiper
.. and properly format author list. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index bf02a1b..a25c223 100644 --- a/doc/multiboot.texi +++

[Xen-devel] [MULTIBOOT2 DOC PATCH 08/10] multiboot2: Add C structure alignment and padding consideration section

2016-06-09 Thread Daniel Kiper
Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi | 17 + 1 file changed, 17 insertions(+) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index c81b2ea..bf02a1b 100644 --- a/doc/multiboot.texi +++ b/doc/multiboot.texi @@ -1384,6 +

[Xen-devel] [MULTIBOOT2 DOC PATCH 01/10] multiboot2: Remove redundant if

2016-06-09 Thread Daniel Kiper
Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- doc/multiboot.texi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/multiboot.texi b/doc/multiboot.texi index 4b92918..27e5a2f 100644 --- a/doc/multiboot.texi +++ b/doc/multiboot.texi @@ -425,7 +425,7

Re: [Xen-devel] [PATCH v3 10/16] efi: create efi_enabled()

2016-05-25 Thread Daniel Kiper
On Wed, May 25, 2016 at 01:20:23AM -0600, Jan Beulich wrote: > >>> On 15.04.16 at 14:33, wrote: > > --- a/xen/arch/x86/efi/stub.c > > +++ b/xen/arch/x86/efi/stub.c > > @@ -4,11 +4,8 @@ > > #include > > #include > > > > -#ifndef efi_enabled > > -const bool_t

Re: [Xen-devel] [PATCH v3 14/16] x86/boot: implement early command line parser in C

2016-05-25 Thread Daniel Kiper
here. > > --- /dev/null > > +++ b/xen/arch/x86/boot/cmdline.c > > @@ -0,0 +1,357 @@ > > +/* > > + * Copyright (c) 2015, 2016 Oracle and/or its affiliates. All rights > > reserved. > > + * Daniel Kiper <daniel.ki...@oracle.com> > > + * > > + *

Re: [Xen-devel] [PATCH v3 11/16] efi: build xen.gz with EFI code

2016-05-25 Thread Daniel Kiper
On Wed, May 25, 2016 at 01:53:31AM -0600, Jan Beulich wrote: > >>> On 15.04.16 at 14:33, wrote: > > --- a/xen/arch/x86/efi/Makefile > > +++ b/xen/arch/x86/efi/Makefile > > @@ -1,14 +1,9 @@ > > CFLAGS += -fshort-wchar > > > > -obj-y += stub.o > > - > > -create = test -e

Re: [Xen-devel] [PATCH v3 13/16 - RFC] x86: add multiboot2 protocol support for EFI platforms

2016-05-25 Thread Daniel Kiper
On Wed, May 25, 2016 at 03:32:37AM -0600, Jan Beulich wrote: > >>> On 15.04.16 at 14:33, wrote: > > @@ -100,19 +107,29 @@ multiboot2_header_end: > > gdt_boot_descr: > > .word 6*8-1 > > .long sym_phys(trampoline_gdt) > > +.long 0 /* Needed

Re: [Xen-devel] [PATCH v3 12/16 - RFC] x86/efi: create new early memory allocator

2016-05-25 Thread Daniel Kiper
On Wed, May 25, 2016 at 02:39:57AM -0600, Jan Beulich wrote: > >>> On 15.04.16 at 14:33, wrote: > > There is a problem with place_string() which is used as early memory > > allocator. It gets memory chunks starting from start symbol and > > going down. Sadly this does not

Re: [Xen-devel] [PATCH v3 14/16] x86/boot: implement early command line parser in C

2016-06-02 Thread Daniel Kiper
On Fri, May 27, 2016 at 03:33:49AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 23:36, wrote: > > On Wed, May 25, 2016 at 04:33:54AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: [...] > >> > +/* > >> > + * Compiler is not

Re: [Xen-devel] [PATCH v3 12/16 - RFC] x86/efi: create new early memory allocator

2016-06-02 Thread Daniel Kiper
On Thu, Jun 02, 2016 at 02:11:32AM -0600, Jan Beulich wrote: > >>> On 01.06.16 at 21:53, wrote: > > On Wed, Jun 01, 2016 at 10:02:51AM -0600, Jan Beulich wrote: > >> >>> On 01.06.16 at 17:58, wrote: > >> > On Fri, May 27, 2016 at 02:37:06AM

Re: [Xen-devel] [PATCH v3 13/16 - RFC] x86: add multiboot2 protocol support for EFI platforms

2016-06-02 Thread Daniel Kiper
On Thu, Jun 02, 2016 at 02:34:28AM -0600, Jan Beulich wrote: > >>> On 01.06.16 at 21:03, wrote: > > On Fri, May 27, 2016 at 03:02:25AM -0600, Jan Beulich wrote: > >> >>> On 25.05.16 at 23:02, wrote: > >> > On Wed, May 25, 2016 at 03:32:37AM

Re: [Xen-devel] [PATCH v3 12/16 - RFC] x86/efi: create new early memory allocator

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 02:37:06AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 21:48, wrote: > > On Wed, May 25, 2016 at 02:39:57AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: > >> > There is a problem with place_string()

Re: [Xen-devel] [PATCH v3 12/16 - RFC] x86/efi: create new early memory allocator

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 02:37:06AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 21:48, wrote: > > On Wed, May 25, 2016 at 02:39:57AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: [...] > >> > Jan Beulich added 1b) Do away

Re: [Xen-devel] [PATCH v3 13/16 - RFC] x86: add multiboot2 protocol support for EFI platforms

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 03:02:25AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 23:02, wrote: > > On Wed, May 25, 2016 at 03:32:37AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: > >> > bad_cpu: > >> > mov

Re: [Xen-devel] [PATCH v3 16/16] x86: add multiboot2 protocol support for relocatable images

2016-06-01 Thread Daniel Kiper
On Wed, Jun 01, 2016 at 08:44:31AM -0600, Jan Beulich wrote: > >>> On 01.06.16 at 15:35, wrote: > > On Wed, May 25, 2016 at 05:03:20AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: > >> > --- a/xen/arch/x86/boot/head.S > >> >

Re: [Xen-devel] [PATCH v3 12/16 - RFC] x86/efi: create new early memory allocator

2016-06-01 Thread Daniel Kiper
On Wed, Jun 01, 2016 at 10:02:51AM -0600, Jan Beulich wrote: > >>> On 01.06.16 at 17:58, wrote: > > On Fri, May 27, 2016 at 02:37:06AM -0600, Jan Beulich wrote: > >> >>> On 25.05.16 at 21:48, wrote: > >> > On Wed, May 25, 2016 at 02:39:57AM

Re: [Xen-devel] [PATCH v3 11/16] efi: build xen.gz with EFI code

2016-06-01 Thread Daniel Kiper
On Wed, Jun 01, 2016 at 09:58:25AM -0600, Jan Beulich wrote: > >>> On 01.06.16 at 17:48, wrote: > > On Fri, May 27, 2016 at 02:31:52AM -0600, Jan Beulich wrote: > >> >>> On 25.05.16 at 21:07, wrote: > >> > On Wed, May 25, 2016 at 01:53:31AM

Re: [Xen-devel] [PATCH] kexec: allow relaxed placement specification via command line

2016-06-01 Thread Daniel Kiper
ation" instead of "kexec reservation"? Kexec is a bit different thing and does not need upfront memory reservations. > +The `:' pairs indicate how much memory to set > +aside for kexec (`') for a given range of installed RAM Ditto. Otherwise Reviewed-by: Daniel Kiper <daniel.

Re: [Xen-devel] [PATCH v3 16/16] x86: add multiboot2 protocol support for relocatable images

2016-06-01 Thread Daniel Kiper
On Wed, May 25, 2016 at 05:03:20AM -0600, Jan Beulich wrote: > >>> On 15.04.16 at 14:33, wrote: > > Add multiboot2 protocol support for relocatable images. Only GRUB2 with > > "multiboot2: Add support for relocatable images" patch understands > > that feature. Older

Re: [Xen-devel] [PATCH v3 10/16] efi: create efi_enabled()

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 02:22:39AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 19:15, wrote: > > On Wed, May 25, 2016 at 01:20:23AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: [...] > >> > --- a/xen/include/xen/efi.h > >>

Re: [Xen-devel] [PATCH v3 09/16] efi: explicitly define efi struct in xen/arch/x86/efi/stub.c

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 02:16:09AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 18:45, wrote: > > On Wed, May 25, 2016 at 01:03:42AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: > >> > Existing solution does not allocate

Re: [Xen-devel] [PATCH v3 11/16] efi: build xen.gz with EFI code

2016-06-01 Thread Daniel Kiper
On Fri, May 27, 2016 at 02:31:52AM -0600, Jan Beulich wrote: > >>> On 25.05.16 at 21:07, wrote: > > On Wed, May 25, 2016 at 01:53:31AM -0600, Jan Beulich wrote: > >> >>> On 15.04.16 at 14:33, wrote: [...] > >> > --- a/xen/common/efi/boot.c > >>

Re: [Xen-devel] [PATCH v3 03/16] x86/boot: call reloc() using cdecl calling convention

2016-06-17 Thread Daniel Kiper
On Fri, Apr 15, 2016 at 04:56:26PM +0100, Andrew Cooper wrote: > On 15/04/16 13:33, Daniel Kiper wrote: > > reloc() is not called according to cdecl calling convention. > > This makes confusion and does not scale well for more arguments. > > And patch adding multiboot2

Re: [Xen-devel] [PATCH v3 07/16] x86/boot: create *.lnk files with linker script

2016-06-17 Thread Daniel Kiper
: > >> > --- /dev/null > >> > +++ b/xen/arch/x86/boot/build32.lds > >> > @@ -0,0 +1,49 @@ > >> > +/* > >> > + * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. > >> > + * Daniel Kiper <daniel.ki...

Re: [Xen-devel] [PATCH v3 07/16] x86/boot: create *.lnk files with linker script

2016-06-17 Thread Daniel Kiper
On Fri, Jun 17, 2016 at 04:04:20AM -0600, Jan Beulich wrote: > >>> On 17.06.16 at 11:06, wrote: > > On Tue, May 24, 2016 at 06:52:39AM -0600, Jan Beulich wrote: > >> >>> On 24.05.16 at 14:28, wrote: > >> > On Tue, May 24, 2016 at 03:05:06AM

Re: [Xen-devel] [PATCH v5 1/2] memory-hotplug: add automatic onlining policy for the newly added memory

2016-01-13 Thread Daniel Kiper
line" which preserves the current behavior and "online" which > causes all newly added memory blocks to go online as soon as they're added. > The default is "offline". > > Signed-off-by: Vitaly Kuznetsov <vkuzn...@redhat.com> Reviewed-by: Daniel Kipe

Re: [Xen-devel] [PATCH v5 2/2] xen_balloon: support memory auto onlining policy

2016-01-13 Thread Daniel Kiper
On Wed, Jan 13, 2016 at 06:32:30PM +0100, Vitaly Kuznetsov wrote: > Add support for the newly added kernel memory auto onlining policy to Xen > ballon driver. > > Suggested-by: Daniel Kiper <daniel.ki...@oracle.com> > Signed-off-by: Vitaly Kuznetsov <vkuzn...@redhat.c

Re: [Xen-devel] Question of xl dump-core

2016-06-17 Thread Daniel Kiper
On Wed, Jun 15, 2016 at 09:46:45AM +0800, wj zhou wrote: > Hi, > > Thanks a lot for your reply! > > On Tue, Jun 14, 2016 at 11:02 PM, Konrad Rzeszutek Wilk > wrote: > > On Tue, Jun 14, 2016 at 08:21:16AM +0800, wj zhou wrote: > >> Hello all, > > > > Hey, > > > > CC-ing

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

2016-02-12 Thread Daniel Kiper
Hey Juergen, On Fri, Feb 12, 2016 at 07:25:02AM +0100, Juergen Gross wrote: [...] > Okay, let me do some cleanup work on the xen loader: > > - add the possibility to call it multiple times (state reset, free the > allocated memory) > - merge all necessary global variables into one state

Re: [Xen-devel] [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Daniel Kiper
On Fri, Feb 12, 2016 at 03:57:59PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Applied, thanks Thanks but here http://lists.gnu.org/archive/html/grub-devel/2015-07/msg00100.html Andrei and later here http://lists.gnu.org/archive/html/grub-devel/2015-11/msg00110.html you expressed

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-02-12 Thread Daniel Kiper
On Wed, Feb 03, 2016 at 06:03:50PM +0100, Daniel Kiper wrote: > On Wed, Feb 03, 2016 at 05:08:44PM +0100, Daniel Kiper wrote: > > On Tue, Feb 02, 2016 at 03:50:17PM -0600, Doug Goldstein wrote: > > > On 2/2/16 3:20 PM, Daniel Kiper wrote: > > > > On Tue, Feb 02, 2016

Re: [Xen-devel] [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Daniel Kiper
On Fri, Feb 12, 2016 at 07:12:52PM +, Vladimir 'phcoder' Serbinenko wrote: > Le ven. 12 févr. 2016 20:01, Daniel Kiper <daniel.ki...@oracle.com> a > écrit : > > > On Fri, Feb 12, 2016 at 03:57:59PM +0100, Vladimir 'φ-coder/phcoder' > > Serbinenko wrote: > >

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

2016-02-11 Thread Daniel Kiper
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 kernel mapping in order to support huge pv domains. > > This allows a

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

2016-02-11 Thread Daniel Kiper
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 preparations depending on the features the kernel > is supporting. > >

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

2016-02-11 Thread Daniel Kiper
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 the features the kernel is supporting. > > Signed-off-by: Juergen Gross

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

2016-02-11 Thread Daniel Kiper
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 set by the kernel don't place the initrd into > the initial mapping. This will

Re: [Xen-devel] dom0 show call trace and failed to boot on HSW-EX platform

2016-02-02 Thread Daniel Kiper
On Tue, Feb 02, 2016 at 01:15:13PM +, Li, Liang Z wrote: > > >> We found dom0 will crash when booing on HSW-EX server, the dom0 > > >> kernel version is v4.4. By debugging I found the your patch ' > > >> x86/xen: discard RAM regions above the maximum reservation' , which > > the commit ID is :

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-02-02 Thread Daniel Kiper
On Tue, Feb 02, 2016 at 01:02:56PM -0800, PGNet Dev wrote: > Here http://wiki.xenproject.org/wiki/Xen_EFI#Xen_as_gz_binary refers > to original discussion in 2013 (work has been deferred to Xen 4.6. ) > > and says "work has been deferred to Xen 4.6." > > >I think that this should be Xen 4.8

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-02-02 Thread Daniel Kiper
On Tue, Feb 02, 2016 at 05:10:58PM +, Andrew Cooper wrote: > On 02/02/16 17:01, PGNet Dev wrote: > > I launch Xen on EFI currently via chainload in Grub2. > > > > While troubleshooting other issue, it's , at best, quite inconvenient. > > I understand multiboot2 support is in the works. > > > >

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-02-03 Thread Daniel Kiper
On Tue, Feb 02, 2016 at 03:50:17PM -0600, Doug Goldstein wrote: > On 2/2/16 3:20 PM, Daniel Kiper wrote: > > On Tue, Feb 02, 2016 at 01:02:56PM -0800, PGNet Dev wrote: > >> Here http://wiki.xenproject.org/wiki/Xen_EFI#Xen_as_gz_binary refers > >> to original discus

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-02-03 Thread Daniel Kiper
On Wed, Feb 03, 2016 at 05:08:44PM +0100, Daniel Kiper wrote: > On Tue, Feb 02, 2016 at 03:50:17PM -0600, Doug Goldstein wrote: > > On 2/2/16 3:20 PM, Daniel Kiper wrote: > > > On Tue, Feb 02, 2016 at 01:02:56PM -0800, PGNet Dev wrote: > > >> Here http://wi

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

2016-02-22 Thread Daniel Kiper
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 allow multiple virtual regions > >> to be mapped.

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

2016-02-22 Thread Daniel Kiper
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: > >>> On Mon, Feb 22, 2016 at 07:03:18AM +0100, Juer

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

2016-02-22 Thread Daniel Kiper
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 initrd not covered by the initial > >> mapping. This capa

Re: [Xen-devel] [PATCH v5 02/11] xen: avoid memleaks on error

2016-02-25 Thread Daniel Kiper
On Thu, Feb 25, 2016 at 12:33:28PM +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> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel __

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

2016-02-25 Thread Daniel Kiper
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 set by the kernel don't place the initrd into > the initial mapping. This will

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

2016-02-25 Thread Daniel Kiper
gt; This allows a cleaner approach for mapping the relocator page by > using this capability. > > 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>

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

2016-02-29 Thread Daniel Kiper
On Mon, Feb 29, 2016 at 04:49:04PM +0100, Juergen Gross wrote: > 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, Jue

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

2016-02-29 Thread Daniel Kiper
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: > >>> On Thu, Feb 25, 2016 at 04:33:46PM +0100, Jue

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

2016-02-26 Thread Daniel Kiper
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 initrd not covered by the initial > >> mapping. This capa

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

2016-02-26 Thread Daniel Kiper
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: > >>> On Thu, Feb 25, 2016 at 12:33:35PM +0100, Juer

[Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel 3.19 and newer

2016-01-21 Thread Daniel Kiper
crash_xen_info_t.dom0_pfn_to_mfn_frame_list_list which is available out of the box. So, let's use it and make at least some users happy. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- kernel.c | 81 ++-- xen_dom0.c |3 ++- xen_dom0.h |2

Re: [Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel 3.19 and newer

2016-01-22 Thread Daniel Kiper
On Fri, Jan 22, 2016 at 10:03:34AM +, David Vrabel wrote: > On 21/01/16 20:13, Daniel Kiper wrote: > > Linux kernel commit 054954eb051f35e74b75a566a96fe756015352c8 > > (xen: switch to linear virtual mapped sparse p2m list), which > > appeared in 3.19, introduced linear

[Xen-devel] p2m stuff and crash tool

2016-02-16 Thread Daniel Kiper
Hey Juergen, As I saw you are strongly playing with p2m stuff, so, I hope that you can enlighten me a bit in that area. OVM, Oracle product, uses as dom0 kernel Linux 3.8.13 (yep, I know this is very ancient stuff) with a lot of backports. Among them there is commit

Re: [Xen-devel] p2m stuff and crash tool

2016-02-17 Thread Daniel Kiper
On Tue, Feb 16, 2016 at 01:55:33PM +0100, Juergen Gross wrote: > Hi Daniel, > > On 16/02/16 12:35, Daniel Kiper wrote: > > Hey Juergen, [...] > > After that I decided to take a look at Linux kernel upstream. I saw > > that xen_max_p2m_pfn in xen_build_mfn_list_list

Re: [Xen-devel] p2m stuff and crash tool

2016-02-17 Thread Daniel Kiper
On Wed, Feb 17, 2016 at 03:27:01PM +0100, Juergen Gross wrote: > On 17/02/16 14:59, Daniel Kiper wrote: > > On Tue, Feb 16, 2016 at 01:55:33PM +0100, Juergen Gross wrote: > >> Hi Daniel, > >> > >> On 16/02/16 12:35, Daniel Kiper wrote: > >>> H

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

2016-02-18 Thread Daniel Kiper
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_unload() as other modules do it before allocating Do you mean grub_xen_reset? >

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

2016-02-18 Thread Daniel Kiper
lt;jgr...@suse.com> Just two nitpicks but in general... Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> > --- > grub-core/loader/i386/xen.c | 259 > +++- > 1 file changed, 138 insertions(+), 121 deletions(-) > > diff --git a/g

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

2016-02-18 Thread Daniel Kiper
n the code when interpreting the elf notes > make use of the header supplied by Xen for that purpose. > > Signed-off-by: Juergen Gross <jgr...@suse.com> Yummy! Just one nitpick. Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> > --- > grub-core/loader/i386/xen_f

Re: [Xen-devel] [PATCH v3 04/10] xen: synchronize xen header

2016-02-18 Thread Daniel Kiper
On Wed, Feb 17, 2016 at 06:19:31PM +0100, Juergen Gross wrote: > 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..

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

2016-02-18 Thread Daniel Kiper
s supporting. > > While at this remove superfluous setting of first_p2m_pfn and > nr_p2m_frames 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 Kip

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

2016-02-18 Thread Daniel Kiper
s the kernel is supporting. > > Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

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

2016-02-18 Thread Daniel Kiper
rgen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

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

2016-02-18 Thread Daniel Kiper
initial mapping. This will allow to load larger initrds and/or > support domains with larger memory, as the initial mapping is limited > to 2GB and it is containing the p2m list. > > Signed-off-by: Juergen Gross <jgr...@suse.com> One nitpick. Reviewed-by: Daniel Kiper <daniel.ki...@or

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

2016-02-18 Thread Daniel Kiper
m> > --- > V3: use constants instead of numbers as requested by Daniel Kiper > add lots of comments to assembly code as requested by Daniel Kiper > --- > grub-core/lib/i386/xen/relocator.S | 87 ++ > grub-core/lib/x86_64/xen/relocator.S | 134 ++- > grub-c

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

2016-02-18 Thread Daniel Kiper
ve > a p2m list larger than this. > > Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

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

2016-02-18 Thread Daniel Kiper
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 environment isn't callable multiple > >> times as it wo

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

2016-02-18 Thread Daniel Kiper
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 environment is using lots of global > >> variables. Reduc

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

2016-02-18 Thread Daniel Kiper
On Thu, Feb 18, 2016 at 11:35:52AM +0100, Juergen Gross wrote: > 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

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

2016-02-18 Thread Daniel Kiper
On Thu, Feb 18, 2016 at 01:43:33PM +0100, Juergen Gross wrote: > 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 capa

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

2016-02-11 Thread Daniel Kiper
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 function. This will > >> allow to do the al

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

2016-02-11 Thread Daniel Kiper
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 be loaded kernel in a separate > >> function. This wi

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

2016-02-11 Thread Daniel Kiper
On Thu, Feb 11, 2016 at 03:35:45PM +0100, Juergen Gross wrote: > 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.

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

2016-02-11 Thread Daniel Kiper
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 the boot preparations depending on > the features the kernel is

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

2016-02-11 Thread Daniel Kiper
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 initrd not covered by the initial > >> mapping. This capa

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

2016-02-22 Thread Daniel Kiper
> --- > V4: align variables in assembly sources > use separate structure define as requested by Daniel Kiper > > V3: use constants instead of numbers as requested by Daniel Kiper > add lots of comments to assembly code as requested by Daniel Kiper > --- > grub-core/lib/

Re: [Xen-devel] [PATCH v4 01/11] xen: make xen loader callable multiple times

2016-02-22 Thread Daniel Kiper
locator or when unloading the module. > > Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

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

2016-02-22 Thread Daniel Kiper
initial mapping. This will allow to load larger initrds and/or > support domains with larger memory, 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

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

2016-02-22 Thread Daniel Kiper
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 > --- > grub-core/loader/i386/xen.c| 2 +- > grub-core/loader/i386/xen_fileXX.c | 17 +++-- >

Re: [Xen-devel] Status of multiboot2 support on EFI?

2016-03-10 Thread Daniel Kiper
On Fri, Feb 12, 2016 at 08:08:58PM +0100, Daniel Kiper wrote: > On Wed, Feb 03, 2016 at 06:03:50PM +0100, Daniel Kiper wrote: > > On Wed, Feb 03, 2016 at 05:08:44PM +0100, Daniel Kiper wrote: > > > On Tue, Feb 02, 2016 at 03:50:17PM -0600, Doug Goldstein wrote: > > >

Re: [Xen-devel] [GRUB2 PATCH v4 3/4 - FOR REVIEW ONLY] multiboot2: Do not pass memory maps to image if EFI boot services are enabled

2016-03-15 Thread Daniel Kiper
ent. Is the second email > > the > > > version for commit? > > > > > > On Tuesday, March 15, 2016, Daniel Kiper <daniel.ki...@oracle.com> > > wrote: > > > > > >> Do not pass memory maps to image if it asked for EFI boot services. >

Re: [Xen-devel] [GRUB2 PATCH v4 1/4] i386/relocator: Add grub_relocator64_efi relocator

2016-03-15 Thread Daniel Kiper
On Tue, Mar 15, 2016 at 05:00:33PM +0100, Vladimir 'phcoder' Serbinenko wrote: > Other than 2 typos (inline). Looks good. Let's give it a day if somebody > wants to object, then I'll commit it > > > > > movq%rax, %rsp > > > > + /* > > +* Here is

Re: [Xen-devel] [GRUB2 PATCH v4 4/4] multiboot2: Add support for relocatable images

2016-03-15 Thread Daniel Kiper
On Tue, Mar 15, 2016 at 05:30:20PM +0100, Vladimir 'phcoder' Serbinenko wrote: > On Tuesday, March 15, 2016, Vladimir 'phcoder' Serbinenko > wrote: > > > > >> + if (mld->relocatable) > >> + err = grub_relocator_alloc_chunk_align > >>

Re: [Xen-devel] [GRUB2 PATCH v4 3/4 - FOR REVIEW ONLY] multiboot2: Do not pass memory maps to image if EFI boot services are enabled

2016-03-15 Thread Daniel Kiper
On Tue, Mar 15, 2016 at 05:07:43PM +0100, Vladimir 'phcoder' Serbinenko wrote: > Looks good. Let's give a day for others to comment. Is the second email the > version for commit? Yep, as you asked for. Daniel ___ Xen-devel mailing list

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

2016-03-14 Thread Daniel Kiper
On Fri, Mar 11, 2016 at 05:13:19PM +0100, Vladimir 'phcoder' Serbinenko wrote: > > > > + if (relocatable) > > > > +{ > > > > + if (base_addr > min_addr) > > > > + grub_multiboot_payload_eip += base_addr - min_addr; > > > > + else > > > > + grub_multiboot_payload_eip -=

[Xen-devel] [GRUB2 PATCH v4 0/4] multiboot2: Add two extensions

2016-03-15 Thread Daniel Kiper
(+), 101 deletions(-) Daniel Kiper (4): i386/relocator: Add grub_relocator64_efi relocator multiboot2: Add tags used to pass ImageHandle to loaded image multiboot2: Do not pass memory maps to image if EFI boot services are enabled multiboot2: Add support for relocatable

[Xen-devel] [GRUB2 PATCH v4 2/4] multiboot2: Add tags used to pass ImageHandle to loaded image

2016-03-15 Thread Daniel Kiper
Add tags used to pass ImageHandle to loaded image if requested. It is used by at least ExitBootServices() function. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- v4 - suggestions/fixes: - reduce number of #ifdefs in grub_multiboot_get_mbi_size() (suggested by Vladimir 'p

[Xen-devel] [GRUB2 PATCH v4 3/4 - FOR REVIEW ONLY] multiboot2: Do not pass memory maps to image if EFI boot services are enabled

2016-03-15 Thread Daniel Kiper
services then it is easier to not provide maps. However, if image needs memory maps and they are not provided by bootloader then it should get them itself just before ExitBootServices() call. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <

[Xen-devel] [GRUB2 PATCH v4 1/4] i386/relocator: Add grub_relocator64_efi relocator

2016-03-15 Thread Daniel Kiper
into loaded image, will be set accordingly to Unified Extensible Firmware Interface Specification, Version 2.4 Errata B, section 2.3.4, x64 Platforms, boot services. This way loaded image will be able to use EFI boot services without any issues. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com>

[Xen-devel] [GRUB2 PATCH v4 3/4 - FOR COMMIT] multiboot2: Do not pass memory maps to image if EFI boot services are enabled

2016-03-15 Thread Daniel Kiper
services then it is easier to not provide maps. However, if image needs memory maps and they are not provided by bootloader then it should get them itself just before ExitBootServices() call. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <

[Xen-devel] [GRUB2 PATCH v4 4/4] multiboot2: Add support for relocatable images

2016-03-15 Thread Daniel Kiper
. This patch was tested with Xen image which uses that functionality. However, this Xen feature is still under development and new patchset will be released in about 3-4 weeks. Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> --- v4 - suggestions/fixes: - pack grub_multiboot_lo

Re: [Xen-devel] [GRUB2 PATCH v3 0/4] multiboot2: Add two extensions

2016-03-09 Thread Daniel Kiper
On Wed, Mar 02, 2016 at 05:51:36PM +0100, Daniel Kiper wrote: > Hi, > > This patch series: > - enables EFI boot services usage in loaded images > by multiboot2 protocol, > - add support for multiboot2 protocol compatible > relocatable images. > > Earlier ve

Re: [Xen-devel] [GRUB2 PATCH v3 3/4] multiboot2: Do not pass memory maps to image if EFI boot services are enabled

2016-03-11 Thread Daniel Kiper
On Thu, Mar 10, 2016 at 09:28:25PM +0100, Vladimir 'phcoder' Serbinenko wrote: > On Wednesday, March 2, 2016, Daniel Kiper <daniel.ki...@oracle.com> wrote: > > > Do not pass memory maps to image if it asked for EFI boot services. > > Main reason for not providing maps is

Re: [Xen-devel] [GRUB2 PATCH v3 0/4] multiboot2: Add two extensions

2016-03-11 Thread Daniel Kiper
On Fri, Mar 11, 2016 at 01:27:32PM +0100, Vladimir 'phcoder' Serbinenko wrote: > On Wednesday, March 9, 2016, Daniel Kiper <daniel.ki...@oracle.com> wrote: > > > On Wed, Mar 02, 2016 at 05:51:36PM +0100, Daniel Kiper wrote: > > > Hi, > > > > > >

<    1   2   3   4   5   6   7   8   9   >