/* Library constructor: retrieves the Hyperpage address from the gEfiXenInfoGuid HOB  */
RETURN_STATUS EFIAPI XenHypercallLibInit(VOID)
/* Library constructor: retrieves the Hyperpage address from the gEfiXenInfoGuid HOB  */
RETURN_STATUS EFIAPI XenHypercallLibInit(VOID)
{
  EFI_HOB_GUID_TYPE  *GuidHob;
  EFI_XEN_INFO       *XenInfo;
  GuidHob = GetFirstGuidHob (&gEfiXenInfoGuid);
  if (GuidHob == NULL) {
    return RETURN_NOT_FOUND;
  }
  XenInfo   = (EFI_XEN_INFO *)GET_GUID_HOB_DATA (GuidHob);
  HyperPage = XenInfo->HyperPages;
  return RETURN_SUCCESS;
}