Re: [PATCH RFC 0/3] x86/e820: Ignore memmap= and mem= in confidential guests
From: Ard Biesheuvel
Date: Tue Nov 24 2026 - 11:26:53 EST
On Tue, 24 Nov 2026, at 17:14, Mike Rapoport wrote:
> On Tue, Nov 24, 2026 at 07:58:31AM -0800, Dave Hansen wrote:
>> On 11/24/26 07:56, Mike Rapoport wrote:
>> > On Tue, Nov 24, 2026 at 07:09:42AM -0800, Dave Hansen wrote:
>> >> On 11/24/26 05:32, Pankaj Gupta wrote:
>> >>> In a confidential guest (SEV-SNP, TDX) the EFI stub builds the unaccepted
>> >>> memory bitmap before the command line is parsed. memmap= and mem= edit
>> >>> e820_table only afterwards.
>> >> memmap= and mem= are debugging tools, right?
>> > I wish they were 🙂
>> > But AFAIU they are used to carve out "pmem" or PFN-mapped memory.
>>
>> I've used them that way for development, but production pmem systems
>> always had persistent memory in their BIOS-provided memory maps.
>>
>> How are folks depending on these in production in confidential guests?
>
> They shouldn't but you can't guarantee that.
>
> But I don't mind letting them crash if they do :)
>
I'm fine with either approach (i.e. disallowing it or doing nothing
at all), as long as we don't pretend that this is something that is
expected to work.