On 10/14/21 1:58 AM, Gerd Hoffmann wrote:
> On Wed, Oct 13, 2021 at 11:57:11AM -0500, Brijesh Singh wrote:
>> When SEV-SNP is active, the CPUID and Secrets memory range contains the
>> information that is used during the VM boot. The content need to be persist
>> across the kexec boot. Mark the memory range as Reserved in the EFI map
>> so that guest OS or firmware does not use the range as a system RAM.
> Why is this needed?  Isn't the complete firmware memory tagged as
> reserved anyway?

PlatformPei detects all the guest memory and marks it as a SYSTEM_RAM
unless its an MMIO or added as reserved in e820 map file. Since the
Secrets and CPUID pages are part of system RAM so we need to explicitly
exclude these region.

thanks


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#82056): https://edk2.groups.io/g/devel/message/82056
Mute This Topic: https://groups.io/mt/86292921/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to