/* The ValidBitmap area represents the areas of the GHCB that have been marked valid. Return whether the bit in the ValidBitmap is set for the input offset. */
BOOLEAN EFIAPI CcExitVmgIsOffsetValid(IN GHCB *Ghcb, IN GHCB_REGISTER Offset)
/* The ValidBitmap area represents the areas of the GHCB that have been marked valid. Return whether the bit in the ValidBitmap is set for the input offset. */
BOOLEAN EFIAPI CcExitVmgIsOffsetValid(IN GHCB *Ghcb, IN GHCB_REGISTER Offset)
{
  UINT32  OffsetIndex;
  UINT32  OffsetBit;
  OffsetIndex = Offset / 8;
  OffsetBit   = Offset % 8;
  return ((Ghcb->SaveArea.ValidBitmap[OffsetIndex] & (1 << OffsetBit)) != 0);
}