[PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-19 Thread Leif Lindholm
Some disk types have allocation requirements beyond normal grub_malloc. Add a function pointer to grub_disk_t and a wrapper function in kern/disk.c making use of that function if available, to enable these disk drivers to implement their own malloc. --- grub-core/kern/disk.c | 13 +++-- in

[PATCH 0/2] Alternative efidisk alignment resolution

2016-02-19 Thread Leif Lindholm
The tmp buffer approach did add noticeable delay when booting with a full distro kernel and initrd. This alternative implementation starts by adding a hook for a device specific malloc function into grub_disk_t, and a wrapper in disk.c making use of it. Leif Lindholm (2): disk: Add support for

[PATCH 2/2] efidisk: respect block_io_protocol minimum buffer alignment

2016-02-19 Thread Leif Lindholm
Returned from the OpenProtocol operation, the grub_efi_block_io_media structure contains the io_align field, specifying the minimum alignment required for buffers used in any data transfers with the device. Implement a driver-specific malloc function that allocates a buffer with the required align

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

2016-02-19 Thread Lennart Sorensen
On Fri, Feb 19, 2016 at 05:59:27AM +0100, Juergen Gross wrote: > 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

[PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-02-19 Thread Julien Grall
Xen is currently crashing because of malformed compatible property for the boot module. This is because the property string is not null-terminated as requested by the ePAR spec. --- grub-core/loader/arm64/xen_boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/load