Changeset 108794 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c
- Timestamp:
- Mar 31, 2025 11:31:09 AM (2 weeks ago)
- svn:sync-xref-src-repo-rev:
- 168237
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-164365 /vendor/edk2/current 103735-103757,103769-103776,129194-168232
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c
r99404 r108794 41 41 ) 42 42 { 43 UINT64 CurrentLevel; 44 45 CurrentLevel = CurrentAttr & CCAttrTypeMask; 46 43 47 switch (Attr) { 44 48 case CCAttrAmdSev: … … 46 50 // SEV is automatically enabled if SEV-ES or SEV-SNP is active. 47 51 // 48 return Current Attr>= CCAttrAmdSev;52 return CurrentLevel >= CCAttrAmdSev; 49 53 case CCAttrAmdSevEs: 50 54 // 51 55 // SEV-ES is automatically enabled if SEV-SNP is active. 52 56 // 53 return Current Attr>= CCAttrAmdSevEs;57 return CurrentLevel >= CCAttrAmdSevEs; 54 58 case CCAttrAmdSevSnp: 55 return CurrentAttr == CCAttrAmdSevSnp; 59 return CurrentLevel == CCAttrAmdSevSnp; 60 case CCAttrFeatureAmdSevEsDebugVirtualization: 61 return !!(CurrentAttr & CCAttrFeatureAmdSevEsDebugVirtualization); 56 62 default: 57 63 return FALSE; … … 160 166 return mSevEncryptionMask; 161 167 } 168 169 /** 170 Returns a boolean to indicate whether DebugVirtualization is enabled. 171 172 @retval TRUE DebugVirtualization is enabled 173 @retval FALSE DebugVirtualization is not enabled 174 **/ 175 BOOLEAN 176 EFIAPI 177 MemEncryptSevEsDebugVirtualizationIsEnabled ( 178 VOID 179 ) 180 { 181 return ConfidentialComputingGuestHas (CCAttrFeatureAmdSevEsDebugVirtualization); 182 }
Note:
See TracChangeset
for help on using the changeset viewer.