#include <Library/ResourcePublicationLib.h>\r
#include <Library/MtrrLib.h>\r
#include <IndustryStandard/Xen/arch-x86/hvm/start_info.h>\r
+#include <Library/XenHypercallLib.h>\r
\r
#include "Platform.h"\r
#include "Xen.h"\r
EFI_XEN_OVMF_INFO *Info;\r
CHAR8 Sig[sizeof (Info->Signature) + 1];\r
UINT32 *PVHResetVectorData;\r
+ RETURN_STATUS Status;\r
\r
AsmCpuid (XenLeaf + 2, &TransferPages, &TransferReg, NULL, NULL);\r
mXenInfo.HyperPages = AllocatePages (TransferPages);\r
sizeof(mXenInfo)\r
);\r
\r
+ //\r
+ // Initialize the XenHypercall library, now that the XenInfo HOB is\r
+ // available\r
+ //\r
+ Status = XenHypercallLibInit ();\r
+ ASSERT_RETURN_ERROR (Status);\r
+\r
return EFI_SUCCESS;\r
}\r
\r