Re: [PATCH 2/7] multiboot2: Allow 64-bit entry tags

2024-03-28 Thread Roger Pau Monné via Grub-devel
On Thu, Mar 28, 2024 at 03:05:47PM +, Ross Lagerwall wrote: > On Tue, Mar 19, 2024 at 10:07 AM Roger Pau Monné wrote: > > > > On Wed, Mar 13, 2024 at 03:07:43PM +, Ross Lagerwall wrote: > > > Binaries may be built with entry points above 4G. While bootloaders may &

Re: [PATCH 1/7] multiboot2: Add load type header and support for the PE binary type

2024-03-20 Thread Roger Pau Monné via Grub-devel
On Tue, Mar 19, 2024 at 02:46:59PM +, Ross Lagerwall wrote: > On Tue, Mar 19, 2024 at 1:18 PM Roger Pau Monné wrote: > > > > On Wed, Mar 13, 2024 at 03:07:42PM +, Ross Lagerwall wrote: > > > Currently, multiboot2-compatible bootloaders can load ELF binaries and &

Re: [PATCH 1/7] multiboot2: Add load type header and support for the PE binary type

2024-03-19 Thread Roger Pau Monné via Grub-devel
On Wed, Mar 13, 2024 at 03:07:42PM +, Ross Lagerwall wrote: > Currently, multiboot2-compatible bootloaders can load ELF binaries and > a.out binaries. The presence of the address header tag determines > how the bootloader tries to interpret the binary (a.out if the address > tag is present else

Re: [PATCH 1/7] multiboot2: Add load type header and support for the PE binary type

2024-03-19 Thread Roger Pau Monné via Grub-devel
On Thu, Mar 14, 2024 at 02:24:31PM +, Ross Lagerwall wrote: > On Thu, Mar 14, 2024 at 1:37 PM Jan Beulich wrote: > > > > On 14.03.2024 10:30, Ross Lagerwall wrote: > > > On Thu, Mar 14, 2024 at 7:24 AM Jan Beulich wrote: > > >> > > >> On 13.03.2024 16:07, Ross Lagerwall wrote: > > >>> In addi

Re: [PATCH 2/7] multiboot2: Allow 64-bit entry tags

2024-03-19 Thread Roger Pau Monné via Grub-devel
On Wed, Mar 13, 2024 at 03:07:43PM +, Ross Lagerwall wrote: > Binaries may be built with entry points above 4G. While bootloaders may > relocate them below 4G, it should be possible for the binary to specify > those entry points. Therefore, extend the multiboot2 protocol such that > 64 bit addr

Re: [PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-05-08 Thread Roger Pau Monné via Grub-devel
t; > lib/relocator.c:1204: allocated: 0x74c0+0x478000 > > lib/relocator.c:1414: allocated 0x74c0/0x74c00000 > > > > Fixes: 3a5768645c05 ('First version of allocation from firmware') > > Signed-off-by: Roger Pau Monné > >

Re: multiboot2 and module2 boot issues via GRUB2

2021-04-01 Thread Roger Pau Monné via Grub-devel
On Thu, Apr 01, 2021 at 09:31:07AM +0200, Jan Beulich wrote: > On 01.04.2021 03:06, Roman Shaposhnik wrote: > > And the obvious next question: is my EVE usecase esoteric enough that > > I should just go ahead and do a custom GRUB patch or is there a more > > general interest in this? > > Not sure

Re: [BOOTLOADER SPECIFICATION RFC] The bootloader log format for TrenchBoot and others

2020-06-01 Thread Roger Pau Monné
On Fri, May 29, 2020 at 01:27:35PM +0200, Daniel Kiper wrote: > Hey, > > Below you can find my rough idea of the bootloader log format which is > generic thing but initially will be used for TrenchBoot work. I discussed > this proposal with Ross and Daniel S. So, the idea went through initial > sa

Re: [PATCH v5 11/20] xen: setup hypercall page for PVH

2018-11-23 Thread Roger Pau Monné
rgen Gross Reviewed-by: Roger Pau Monné ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v5 13/20] xen: setup Xen specific data for PVH

2018-11-23 Thread Roger Pau Monné
Write back the possibly modified memory map to the hypervisor in case > the guest is reading it from there again. > > Set the RSDP address for the guest from the start_info page passed > as boot parameter. > > Signed-off-by: Juergen Gross > Reviewed-by: Danie

Re: [Xen-devel] [PATCH v4 14/19] xen: init memory regions for PVH

2018-11-15 Thread Roger Pau Monné
On Fri, Nov 02, 2018 at 01:37:33PM +0100, Juergen Gross wrote: > Add all usable memory regions to grub memory management and add the > needed mmap iterate code, which will be used by grub core (e.g. > grub-core/lib/relocator.c or grub-core/mmap/mmap.c). > > As we are running in 32-bit mode don't a

Re: [Xen-devel] [PATCH v4 13/19] xen: setup Xen specific data for PVH

2018-11-15 Thread Roger Pau Monné
Write back the possibly modified memory map to the hypervisor in case > the guest is reading it from there again. > > Set the RSDP address for the guest from the start_info page passed > as boot parameter. > > Signed-off-by: Juergen Gross > --- > V4: write back memory map

Re: [Xen-devel] [PATCH v4 11/19] xen: get memory map from hypervisor for PVH

2018-11-15 Thread Roger Pau Monné
On Fri, Nov 02, 2018 at 01:37:30PM +0100, Juergen Gross wrote: > Retrieve the memory map from the hypervisor and normalize it to contain > no overlapping entries and to be sorted by address. > > Signed-off-by: Juergen Gross > --- > V3: use grub_e820_mmap_entry instead of own struct (Daniel Kiper)

Re: [Xen-devel] [PATCH v4 10/19] xen: setup hypercall page for PVH

2018-11-15 Thread Roger Pau Monné
grub_xen_panic (Roger Pau Monné) > issue panic message (Roger Pau Monné) > rewrite grub_xen_hypercall to avoid register variables (Daniel Kiper) > --- > grub-core/kern/i386/xen/pvh.c | 69 > +++ > 1 file changed, 69 insertions(+) &g

Re: [Xen-devel] [PATCH v4 12/19] xen: add PCI MMIO areas to memory map

2018-11-14 Thread Roger Pau Monné
On Fri, Nov 09, 2018 at 08:14:57PM +0100, Daniel Kiper wrote: > On Fri, Nov 02, 2018 at 01:37:31PM +0100, Juergen Gross wrote: > > Add possible PCI space MMIO areas as "Reserved" to the memory map in > > order to avoid using those areas for special Xen pages later. > > > > Signed-off-by: Juergen Gr

Re: [Xen-devel] [PATCH v4 12/19] xen: add PCI MMIO areas to memory map

2018-11-14 Thread Roger Pau Monné
> Signed-off-by: Juergen Gross > --- > V4: new patch (Roger Pau Monné) > --- > grub-core/kern/i386/xen/pvh.c | 70 > +++ > 1 file changed, 70 insertions(+) > > diff --git a/grub-core/kern/i386/xen/pvh.c b/grub-core/kern/i386/xen/p

Re: [Xen-devel] [PATCH v2 12/18] xen: setup Xen specific data for PVH

2018-10-30 Thread Roger Pau Monné
On Mon, Oct 29, 2018 at 03:19:34PM +0100, Juergen Gross wrote: > On 29/10/2018 13:57, Roger Pau Monné wrote: > > On Fri, Oct 19, 2018 at 06:39:50PM +0200, Juergen Gross wrote: > >> On 19/10/2018 18:10, Roger Pau Monné wrote: > >>> On Tue, Oct 09, 2018 at 01:03:1

Re: [Xen-devel] [PATCH v2 12/18] xen: setup Xen specific data for PVH

2018-10-29 Thread Roger Pau Monné
On Fri, Oct 19, 2018 at 06:39:50PM +0200, Juergen Gross wrote: > On 19/10/2018 18:10, Roger Pau Monné wrote: > > On Tue, Oct 09, 2018 at 01:03:11PM +0200, Juergen Gross wrote: > >> Initialize the needed Xen specific data. This is: > >> > >> - the Xen start of

Re: [Xen-devel] [PATCH v2 12/18] xen: setup Xen specific data for PVH

2018-10-19 Thread Roger Pau Monné
On Tue, Oct 09, 2018 at 01:03:11PM +0200, Juergen Gross wrote: > Initialize the needed Xen specific data. This is: > > - the Xen start of day page containing the console and Xenstore ring > page PFN and event channel > - the grant table > - the shared info page > > Set the RSDP address for the

Re: [Xen-devel] [PATCH v2 12/18] xen: setup Xen specific data for PVH

2018-10-19 Thread Roger Pau Monné
On Tue, Oct 09, 2018 at 01:03:11PM +0200, Juergen Gross wrote: > Initialize the needed Xen specific data. This is: > > - the Xen start of day page containing the console and Xenstore ring > page PFN and event channel > - the grant table > - the shared info page > > Set the RSDP address for the

Re: [Xen-devel] [PATCH v2 10/18] xen: setup hypercall page for PVH

2018-10-19 Thread Roger Pau Monné
On Tue, Oct 09, 2018 at 01:03:09PM +0200, Juergen Gross wrote: > Add the needed code to setup the hypercall page for calling into the > Xen hypervisor. > > Signed-off-by: Juergen Gross > --- > grub-core/kern/i386/xen/pvh.c | 70 > +++ > 1 file changed, 70

Re: [Xen-devel] [PATCH v2 08/18] xen: add basic hooks for PVH in current code

2018-10-19 Thread Roger Pau Monné
On Tue, Oct 09, 2018 at 01:03:07PM +0200, Juergen Gross wrote: > Add the hooks to current code needed for Xen PVH. > > Signed-off-by: Juergen Gross > --- > grub-core/kern/i386/xen/pvh.c | 36 > +++ > grub-core/kern/i386/xen/startup_pvh.S | 29

Re: [PATCH v2] multiboot2: clarify usage of the address tag

2018-06-11 Thread Roger Pau Monné
On Fri, Jun 08, 2018 at 12:39:28PM +0200, Daniel Kiper wrote: > On Fri, Jun 08, 2018 at 12:08:22PM +0200, Roger Pau Monné wrote: > > On Fri, Jun 08, 2018 at 11:35:52AM +0200, Daniel Kiper wrote: > > > On Thu, Jun 07, 2018 at 05:59:06PM +0200, Roger Pau Monne wrote: > > >

Re: [PATCH v2] multiboot2: clarify usage of the address tag

2018-06-08 Thread Roger Pau Monné
On Fri, Jun 08, 2018 at 11:35:52AM +0200, Daniel Kiper wrote: > On Thu, Jun 07, 2018 at 05:59:06PM +0200, Roger Pau Monne wrote: > > Add a note to spell out that if the address tag is not present the > > file should be loaded using the elf header. > > > > Sig

Re: [PATCH] multiboot2: clarify usage of the address tag

2018-06-07 Thread Roger Pau Monné
On Wed, Jun 06, 2018 at 07:28:20PM +0200, Daniel Kiper wrote: > On Tue, Jun 05, 2018 at 11:55:36AM +0200, Roger Pau Monne wrote: > > Add a note to spell out that if the address tag is not present the > > file should be loaded using the elf header. > > > > Sig

Re: [Xen-devel] Xen PVH support in grub2

2017-11-03 Thread Roger Pau Monné
On Fri, Nov 03, 2017 at 07:23:50PM +0100, Juergen Gross wrote: > On 03/11/17 19:19, Boris Ostrovsky wrote: > > On 11/03/2017 02:05 PM, Juergen Gross wrote: > >> > >> So again the question: how to tell whether we are PVH or HVM in > >> init_hypervisor_platform()? ACPi tables are scanned way later...

Re: [Xen-devel] Xen PVH support in grub2

2017-11-03 Thread Roger Pau Monné
On Fri, Nov 03, 2017 at 01:50:11PM +0100, Juergen Gross wrote: > On 03/11/17 13:17, Roger Pau Monné wrote: > > On Fri, Nov 03, 2017 at 01:00:46PM +0100, Juergen Gross wrote: > >> On 29/09/17 17:51, Roger Pau Monné wrote: > >>> On Fri, Sep 29, 2017 at 03:33:5

Re: [Xen-devel] Xen PVH support in grub2

2017-11-03 Thread Roger Pau Monné
On Fri, Nov 03, 2017 at 01:00:46PM +0100, Juergen Gross wrote: > On 29/09/17 17:51, Roger Pau Monné wrote: > > On Fri, Sep 29, 2017 at 03:33:58PM +, Juergen Gross wrote: > >> On 29/09/17 17:24, Roger Pau Monné wrote: > >>> On Fri, Sep 29, 2017 at 02:46:5

Re: [Xen-devel] Xen PVH support in grub2

2017-10-03 Thread Roger Pau Monné
On Fri, Sep 29, 2017 at 05:22:25PM +, Boris Ostrovsky wrote: > On 09/29/2017 01:07 PM, Roger Pau Monné wrote: > > On Fri, Sep 29, 2017 at 05:02:48PM +, Boris Ostrovsky wrote: > >> On 09/29/2017 11:51 AM, Roger Pau Monné wrote: > >>> On Fri, Sep 29, 2017 at 0

Re: [Xen-devel] Xen PVH support in grub2

2017-09-29 Thread Roger Pau Monné
On Fri, Sep 29, 2017 at 03:33:58PM +, Juergen Gross wrote: > On 29/09/17 17:24, Roger Pau Monné wrote: > > On Fri, Sep 29, 2017 at 02:46:53PM +, Juergen Gross wrote: > > Then, I also wonder whether it would make sense for this grub to load > > the kernel using the P

Re: [Xen-devel] Xen PVH support in grub2

2017-09-29 Thread Roger Pau Monné
On Fri, Sep 29, 2017 at 05:02:48PM +, Boris Ostrovsky wrote: > On 09/29/2017 11:51 AM, Roger Pau Monné wrote: > > On Fri, Sep 29, 2017 at 03:33:58PM +, Juergen Gross wrote: > >> On 29/09/17 17:24, Roger Pau Monné wrote: > >>> On Fri, Sep 29, 2017 at 02:46:5

Re: [Xen-devel] Xen PVH support in grub2

2017-09-29 Thread Roger Pau Monné
On Fri, Sep 29, 2017 at 02:46:53PM +, Juergen Gross wrote: > I'm thinking about to add support for Xen PVH guests to grub2. > > Basically I see two options how to do it: > > a) add PVH support to current grub.xen (both, 32- and 64-bit), in >order to use the same grub binary for either pv-