Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-31 Thread Daniel Kiper
On Wed, Aug 31, 2016 at 09:18:39PM +0100, Andrew Cooper wrote: > On 19/08/2016 23:43, Daniel Kiper wrote: > > @@ -106,3 +121,122 @@ multiboot_info_t __stdcall *reloc(u32 mbi_in, u32 > > trampoline) > > > > return mbi_out; > > } > > + > > +static multiboot_info_t *mbi2_mbi(u32 mbi_in) > > +{

Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-31 Thread Andrew Cooper
On 19/08/2016 23:43, Daniel Kiper wrote: > @@ -106,3 +121,122 @@ multiboot_info_t __stdcall *reloc(u32 mbi_in, u32 > trampoline) > > return mbi_out; > } > + > +static multiboot_info_t *mbi2_mbi(u32 mbi_in) > +{ > +const multiboot2_memory_map_t *mmap_src; > +const multiboot2_tag_t

Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-31 Thread Daniel Kiper
On Tue, Aug 30, 2016 at 09:14:28AM -0600, Jan Beulich wrote: > >>> On 30.08.16 at 16:41, wrote: > > On Thu, Aug 25, 2016 at 05:50:04AM -0600, Jan Beulich wrote: > >> >>> On 20.08.16 at 00:43, wrote: > >> > +case MULTIBOOT2_TAG_TYPE_MMAP:

Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-30 Thread Jan Beulich
>>> On 30.08.16 at 16:41, wrote: > On Thu, Aug 25, 2016 at 05:50:04AM -0600, Jan Beulich wrote: >> >>> On 20.08.16 at 00:43, wrote: >> > +case MULTIBOOT2_TAG_TYPE_MMAP: >> > +if ( get_mb2_data(tag, mmap, entry_size) <

Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-30 Thread Daniel Kiper
On Thu, Aug 25, 2016 at 05:50:04AM -0600, Jan Beulich wrote: > >>> On 20.08.16 at 00:43, wrote: > > +case MULTIBOOT2_TAG_TYPE_MMAP: > > +if ( get_mb2_data(tag, mmap, entry_size) < sizeof(*mmap_src) ) > > +break; > > + > > +

Re: [Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-25 Thread Jan Beulich
>>> On 20.08.16 at 00:43, wrote: > +case MULTIBOOT2_TAG_TYPE_MMAP: > +if ( get_mb2_data(tag, mmap, entry_size) < sizeof(*mmap_src) ) > +break; > + > +mbi_out->flags |= MBI_MEMMAP; > +mbi_out->mmap_length =

[Xen-devel] [PATCH v5 09/16] x86: add multiboot2 protocol support

2016-08-19 Thread Daniel Kiper
Add multiboot2 protocol support. Alter min memory limit handling as we now may not find it from either multiboot (v1) or multiboot2. This way we are laying the foundation for EFI + GRUB2 + Xen development. Signed-off-by: Daniel Kiper --- v5 - suggestions/fixes: -