Re: [PATCH v9 29/32] OvmfPkg/MemEncryptSevLib: skip page state change for Mmio address


Gerd Hoffmann
 

On Wed, Oct 13, 2021 at 11:57:10AM -0500, Brijesh Singh wrote:
The SetMemoryEncDec() is used by the higher level routines to set or clear
the page encryption mask for system RAM and Mmio address. When SEV-SNP is
active, in addition to set/clear page mask it also updates the RMP table.
The RMP table updates are required for the system RAM address and not
the Mmio address.

Add a new parameter in SetMemoryEncDec() to tell whether the specified
address is Mmio. If its Mmio then skip the page state change in the RMP
table.
Acked-by: Gerd Hoffmann <kraxel@redhat.com>

Join devel@edk2.groups.io to automatically receive all group messages.