IntelTdx: Removed superfluous TdxSharedBitMask field in EFI_HOB_PLATFORM_INFO

This commit is contained in:
Mikhail Krichanov 2023-06-05 19:47:38 +03:00 committed by MikhailKrichanov
parent 8bce5dd9f0
commit dc770393a3
3 changed files with 2 additions and 3 deletions

View File

@ -57,7 +57,6 @@ typedef struct {
BOOLEAN QemuFwCfgDmaSupported;
UINT64 PteMemoryEncryptionAddressOrMask;
UINT64 TdxSharedBitMask;
UINT64 GhcbBase;
} EFI_HOB_PLATFORM_INFO;
#pragma pack()

View File

@ -52,7 +52,7 @@ IntelTdxInitialize (
PcdStatus = PcdSet64S (PcdTdxSharedBitMask, PageMask);
ASSERT_RETURN_ERROR (PcdStatus);
PlatformInfoHob->TdxSharedBitMask = PageMask;
PlatformInfoHob->PcdTdxSharedBitMask = PageMask;
PcdStatus = PcdSetBoolS (PcdSetNxForStack, TRUE);
ASSERT_RETURN_ERROR (PcdStatus);

View File

@ -310,7 +310,7 @@ GetPageTableEntry (
//
AddressEncMask = mPlatformInfoHob2->PteMemoryEncryptionAddressOrMask & PAGING_1G_ADDRESS_MASK_64;
if (AddressEncMask == 0) {
AddressEncMask = mPlatformInfoHob2->TdxSharedBitMask & PAGING_1G_ADDRESS_MASK_64;
AddressEncMask = mPlatformInfoHob2->PcdTdxSharedBitMask & PAGING_1G_ADDRESS_MASK_64;
}
if (PagingContext->MachineType == IMAGE_FILE_MACHINE_X64) {