/* The base library function returns an error in the form of a GHCB_EVENT_INJECTION representing a GP_EXCEPTION. */
UINT64 EFIAPI CcExitVmgExit(IN OUT GHCB *Ghcb, IN UINT64 ExitCode, IN UINT64 ExitInfo1, IN UINT64 ExitInfo2)
/* The base library function returns an error in the form of a GHCB_EVENT_INJECTION representing a GP_EXCEPTION. */
UINT64 EFIAPI CcExitVmgExit(IN OUT GHCB *Ghcb, IN UINT64 ExitCode, IN UINT64 ExitInfo1, IN UINT64 ExitInfo2)
{
  GHCB_EVENT_INJECTION  Event;
  Event.Uint64          = 0;
  Event.Elements.Vector = GP_EXCEPTION;
  Event.Elements.Type   = GHCB_EVENT_INJECTION_TYPE_EXCEPTION;
  Event.Elements.Valid  = 1;
  return Event.Uint64;
}