Re: [PATCH] x86/sev: Apply RMP table fixups for kexec.

From: Kalra, Ashish
Date: Tue Apr 02 2024 - 14:41:37 EST



On 4/2/2024 12:45 PM, Borislav Petkov wrote:

On Tue, Apr 02, 2024 at 12:11:03PM -0500, Kalra, Ashish wrote:
And if you mean the reservation in the kernel page tables (directmap)
then that will not help as kexec uses it's own identity mapped page
tables.
So how hard would it be to *always* reserve the chunk of memory at the
2M boundary where the RMP table starts and up to the 2M boundary where
the RMP table ends?

In *every* kernel.

But, that's what the e820 table fixup is doing, it is reserving the chunk of memory at the 2M boundary where the RMP table starts and ends in the e820. Kexec is referring to the e820 table(s) for placing it's segments in memory for the kexec boot.

Thanks, Ashish


By default.

Thx.