Comment 14 for bug 2036604

Revision history for this message
dann frazier (dannf) wrote : Re: [Bug 2036604] Re: Synchronous Exception when booting VMs via qemu-efi-aarch64

On Fri, Sep 22, 2023 at 6:15 PM Heinrich Schuchardt
<email address hidden> wrote:
>
> Hello Dann,
>
> The UEFI specification requires that if a 64 KiB page contains either of
>
> – EfiRuntimeServicesCode
> – EfiRuntimeServicesData
> – EfiReserved
> – EfiACPIMemoryNVS
>
> then all 4KiB pages in the 64KiB page must use identical attributes.
>
> So additionally to the cited patch you must ensure that buffer allocated
> with AllocatePages() in handle_image() for which you set memory
> attributes does not contain any of the above memory types. The easiest
> way to fulfill the requirement is appropriate alignment and rounding of
> the used memory. I can't find this in upstream shim.

Nice catch - would you mind reporting this upstream Heinrich?

  -dann