Re: [PATCH -v2] EFI: Runtime services virtual mapping

H. Peter Anvin
2013-10-02T18:47:24Z

On 10/02/2013 11:42 AM, Borislav Petkov wrote:
>
> Yes, so the alignment has to be such that both PA and VA are the same
> amount of 4K pages away from the next 2M boundary, to put it bluntly.
>
> I have a couple of ideas on how to do that.
>

It's pretty straightforward - just drop the starting address to proper
alignment after you subtract the size.

-hpa