Re: [PATCH RFC 0/3] x86/e820: Ignore memmap= and mem= in confidential guests
From: Gupta, Pankaj
Date: Tue Nov 24 2026 - 12:28:35 EST
I'm fine with either approach (i.e. disallowing it or doing nothingThey shouldn't but you can't guarantee that.I've used them that way for development, but production pmem systemsI wish they were 🙂In a confidential guest (SEV-SNP, TDX) the EFI stub builds the unacceptedmemmap= and mem= are debugging tools, right?
memory bitmap before the command line is parsed. memmap= and mem= edit
e820_table only afterwards.
But AFAIU they are used to carve out "pmem" or PFN-mapped memory.
always had persistent memory in their BIOS-provided memory maps.
How are folks depending on these in production in confidential guests?
But I don't mind letting them crash if they do :)
at all), as long as we don't pretend that this is something that is
expected to work.
Yes, it is confusing for a user who expects it to work. I hit this
myself and spent time finding the cause: a memmap= hole consistently
crashes a confidential guest (SEV-SNP) early in boot.
I tried to fix it [1], but a bitmap unit cannot be half accepted when the
hole is not 2 MiB aligned. Also, a TDX guest does accept such holes.
So we are left with the following options:
- disallow the memmap= options with a clear warning, as this series
does,
- add similar handling for TDX, so that holes are not accepted there
either, as done for SEV-SNP in [1]; memmap= holes that are not
2 MiB aligned would still be unhandled, or
- only print a warning and leave the options applied, in which case
memmap= holes still crash SEV-SNP guests.
Which of these do you prefer, or is there a better way to handle it?
[1] https://lore.kernel.org/all/20261113105554.199912-1-pankaj.gupta@xxxxxxx/
Thanks,
Pankaj