/* This function gets the PageLevel according to the input page size. */
UINT32 GetGpaPageLevel(UINT32 PageSize)
/* This function gets the PageLevel according to the input page size. */
UINT32 GetGpaPageLevel(UINT32 PageSize)
{
  UINT32  Index;
  for (Index = 0; Index < ARRAY_SIZE (mTdxAcceptPageLevelMap); Index++) {
    if (mTdxAcceptPageLevelMap[Index] == PageSize) {
      break;
    }
  }
  return Index;
}