/* Read the the ConfidentialComputing Guest type from Ovmf work-area. */
STATIC UINT8 ReadCcGuestType(VOID)
/* Read the the ConfidentialComputing Guest type from Ovmf work-area. */
STATIC UINT8 ReadCcGuestType(VOID)
{
  OVMF_WORK_AREA  *WorkArea;
  if (!mCcProbed) {
    WorkArea          = (OVMF_WORK_AREA *)FixedPcdGet32 (PcdOvmfWorkAreaBase);
    mCcProbeGuestType = WorkArea != NULL ? WorkArea->Header.GuestType : CcGuestTypeNonEncrypted;
    mCcProbed         = TRUE;
  }
  return mCcProbeGuestType;
}