22QemuFlashConvertPointers (
27 mSevEsFlashPhysBase = (
UINTN)mFlashBase;
54 IN volatile UINT8 *Ptr,
62 BOOLEAN InterruptState;
72 if (mSevEsFlashPhysBase == 0) {
73 PhysAddr = (
UINTN)Ptr;
75 PhysAddr = mSevEsFlashPhysBase + (Ptr - mFlashBase);
86 Ghcb->SharedBuffer[0] = Value;
87 Ghcb->SaveArea.SwScratch = (UINT64)(
UINTN)Ghcb->SharedBuffer;
UINT64 EFIAPI CcExitVmgExit(IN OUT GHCB *Ghcb, IN UINT64 ExitCode, IN UINT64 ExitInfo1, IN UINT64 ExitInfo2)
VOID EFIAPI CcExitVmgSetOffsetValid(IN OUT GHCB *Ghcb, IN GHCB_REGISTER Offset)
VOID EFIAPI CcExitVmgInit(IN OUT GHCB *Ghcb, IN OUT BOOLEAN *InterruptState)
VOID EFIAPI CcExitVmgDone(IN OUT GHCB *Ghcb, IN BOOLEAN InterruptState)
UINT64 EFIAPI AsmReadMsr64(IN UINT32 Index)
BOOLEAN EFIAPI MemEncryptSevEsIsEnabled(VOID)
VOID QemuFlashPtrWrite(IN volatile UINT8 *Ptr, IN UINT8 Value)
UINT64 EFI_PHYSICAL_ADDRESS
EFI_STATUS EFIAPI EfiConvertPointer(IN UINTN DebugDisposition, IN OUT VOID **Address)