• Matt Fleming's avatar
    x86/efi-bgrt: Use efi_mem_reserve() to avoid copying image data · 4bc9f92e
    Matt Fleming authored
    efi_mem_reserve() allows us to permanently mark EFI boot services
    regions as reserved, which means we no longer need to copy the image
    data out and into a separate buffer.
    
    Leaving the data in the original boot services region has the added
    benefit that BGRT images can now be passed across kexec reboot.
    Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
    Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
    Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
    Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Peter Jones <pjones@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Josh Boyer <jwboyer@fedoraproject.org>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Môshe van der Sterre <me@moshe.nl>
    Signed-off-by: default avatarMatt Fleming <matt@codeblueprint.co.uk>
    4bc9f92e
efi-bgrt.c 2.32 KB