diff options
Diffstat (limited to 'OvmfPkg/Include/Library/MemEncryptSevLib.h')
-rw-r--r-- | OvmfPkg/Include/Library/MemEncryptSevLib.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/OvmfPkg/Include/Library/MemEncryptSevLib.h b/OvmfPkg/Include/Library/MemEncryptSevLib.h index adc490e466..e1ec161d21 100644 --- a/OvmfPkg/Include/Library/MemEncryptSevLib.h +++ b/OvmfPkg/Include/Library/MemEncryptSevLib.h @@ -21,7 +21,7 @@ // gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupSize
// in any FDF file using this PCD.
//
-#define VMGEXIT_MAXIMUM_VC_COUNT 2
+#define VMGEXIT_MAXIMUM_VC_COUNT 2
//
// Per-CPU data mapping structure
@@ -30,11 +30,11 @@ // writing random data to that area.
//
typedef struct {
- UINT32 Dr7Cached;
- UINT64 Dr7;
+ UINT32 Dr7Cached;
+ UINT64 Dr7;
- UINTN VcCount;
- VOID *GhcbBackupPages;
+ UINTN VcCount;
+ VOID *GhcbBackupPages;
} SEV_ES_PER_CPU_DATA;
//
@@ -91,9 +91,9 @@ MemEncryptSevIsEnabled ( RETURN_STATUS
EFIAPI
MemEncryptSevClearPageEncMask (
- IN PHYSICAL_ADDRESS Cr3BaseAddress,
- IN PHYSICAL_ADDRESS BaseAddress,
- IN UINTN NumPages
+ IN PHYSICAL_ADDRESS Cr3BaseAddress,
+ IN PHYSICAL_ADDRESS BaseAddress,
+ IN UINTN NumPages
);
/**
@@ -116,12 +116,11 @@ MemEncryptSevClearPageEncMask ( RETURN_STATUS
EFIAPI
MemEncryptSevSetPageEncMask (
- IN PHYSICAL_ADDRESS Cr3BaseAddress,
- IN PHYSICAL_ADDRESS BaseAddress,
- IN UINTN NumPages
+ IN PHYSICAL_ADDRESS Cr3BaseAddress,
+ IN PHYSICAL_ADDRESS BaseAddress,
+ IN UINTN NumPages
);
-
/**
Locate the page range that covers the initial (pre-SMBASE-relocation) SMRAM
Save State Map.
@@ -140,8 +139,8 @@ MemEncryptSevSetPageEncMask ( RETURN_STATUS
EFIAPI
MemEncryptSevLocateInitialSmramSaveStateMapPages (
- OUT UINTN *BaseAddress,
- OUT UINTN *NumberOfPages
+ OUT UINTN *BaseAddress,
+ OUT UINTN *NumberOfPages
);
/**
@@ -173,9 +172,9 @@ MemEncryptSevGetEncryptionMask ( MEM_ENCRYPT_SEV_ADDRESS_RANGE_STATE
EFIAPI
MemEncryptSevGetAddressRangeState (
- IN PHYSICAL_ADDRESS Cr3BaseAddress,
- IN PHYSICAL_ADDRESS BaseAddress,
- IN UINTN Length
+ IN PHYSICAL_ADDRESS Cr3BaseAddress,
+ IN PHYSICAL_ADDRESS BaseAddress,
+ IN UINTN Length
);
/**
@@ -198,9 +197,9 @@ MemEncryptSevGetAddressRangeState ( RETURN_STATUS
EFIAPI
MemEncryptSevClearMmioPageEncMask (
- IN PHYSICAL_ADDRESS Cr3BaseAddress,
- IN PHYSICAL_ADDRESS BaseAddress,
- IN UINTN NumPages
+ IN PHYSICAL_ADDRESS Cr3BaseAddress,
+ IN PHYSICAL_ADDRESS BaseAddress,
+ IN UINTN NumPages
);
#endif // _MEM_ENCRYPT_SEV_LIB_H_
|