Re: [PATCH -v2] EFI: Runtime services virtual mapping
From: H. Peter Anvin
Date: Wed Oct 02 2013 - 14:47:30 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/