TianoCore EDK2 master
Loading...
Searching...
No Matches
SecVirtualMemory.c
Go to the documentation of this file.
1
11#include <Library/CpuLib.h>
13
14#include "VirtualMemory.h"
15
22UINT64
23EFIAPI
25 VOID
26 )
27{
28 UINT64 EncryptionMask;
29
30 EncryptionMask = MemEncryptSevGetEncryptionMask ();
31 EncryptionMask &= PAGING_1G_ADDRESS_MASK_64;
32
33 return EncryptionMask;
34}
35
52RETURN_STATUS
53EFIAPI
55 IN PHYSICAL_ADDRESS Cr3BaseAddress,
56 IN PHYSICAL_ADDRESS PhysicalAddress,
57 IN UINTN Length
58 )
59{
60 //
61 // This function is not available during SEC.
62 //
63 return RETURN_UNSUPPORTED;
64}
65
84RETURN_STATUS
85EFIAPI
87 IN PHYSICAL_ADDRESS Cr3BaseAddress,
88 IN PHYSICAL_ADDRESS PhysicalAddress,
89 IN UINTN Length
90 )
91{
92 //
93 // This function is not available during SEC.
94 //
95 return RETURN_UNSUPPORTED;
96}
97
114RETURN_STATUS
115EFIAPI
117 IN PHYSICAL_ADDRESS Cr3BaseAddress,
118 IN PHYSICAL_ADDRESS PhysicalAddress,
119 IN UINTN Length
120 )
121{
122 //
123 // This function is not available during SEC.
124 //
125 return RETURN_UNSUPPORTED;
126}
UINT64 UINTN
#define RETURN_UNSUPPORTED
Definition: Base.h:1081
#define IN
Definition: Base.h:279
UINT64 EFIAPI MemEncryptSevGetEncryptionMask(VOID)
RETURN_STATUS EFIAPI InternalMemEncryptSevSetMemoryDecrypted(IN PHYSICAL_ADDRESS Cr3BaseAddress, IN PHYSICAL_ADDRESS PhysicalAddress, IN UINTN Length)
RETURN_STATUS EFIAPI InternalMemEncryptSevClearMmioPageEncMask(IN PHYSICAL_ADDRESS Cr3BaseAddress, IN PHYSICAL_ADDRESS PhysicalAddress, IN UINTN Length)
UINT64 EFIAPI InternalGetMemEncryptionAddressMask(VOID)
RETURN_STATUS EFIAPI InternalMemEncryptSevSetMemoryEncrypted(IN PHYSICAL_ADDRESS Cr3BaseAddress, IN PHYSICAL_ADDRESS PhysicalAddress, IN UINTN Length)