Hi,

> +  if (CC_GUEST_IS_SEV (PcdGet64 (PcdConfidentialComputingGuestAttr))) {
> +    //
> +    // Clear the memory encryption mask on the plaintext buffer.
> +    //
> +    Status = MemEncryptSevClearPageEncMask (
> +               0,
> +               MapInfo->PlainTextAddress,
> +               MapInfo->NumberOfPages
> +               );
> +  } else if (CC_GUEST_IS_TDX (PcdGet64 (PcdConfidentialComputingGuestAttr))) 
> {
> +    //
> +    // Set the memory shared bit.
> +    //
> +    Status = MemEncryptTdxSetPageSharedBit (
> +               0,
> +               MapInfo->PlainTextAddress,
> +               MapInfo->NumberOfPages
> +               );

Again, this looks very simliar and like a great opportunity to share
code.

take care,
  Gerd



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


Reply via email to