• Matt Fleming's avatar
    efi/runtime-map: Use efi.memmap directly instead of a copy · 31ce8cc6
    Matt Fleming authored
    Now that efi.memmap is available all of the time there's no need to
    allocate and build a separate copy of the EFI memory map.
    
    Furthermore, efi.memmap contains boot services regions but only those
    regions that have been reserved via efi_mem_reserve(). Using
    efi.memmap allows us to pass boot services across kexec reboot so that
    the ESRT and BGRT drivers will now work.
    
    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>
    Signed-off-by: default avatarMatt Fleming <matt@codeblueprint.co.uk>
    31ce8cc6
runtime-map.c 4.31 KB