\r
STATIC VOID *HyperPage;\r
\r
+/**\r
+ Check if the Xen Hypercall library is able to make calls to the Xen\r
+ hypervisor.\r
+\r
+ Client code should call further functions in this library only if, and after,\r
+ this function returns TRUE.\r
+\r
+ @retval TRUE Hypercalls are available.\r
+ @retval FALSE Hypercalls are not available.\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+XenHypercallIsAvailable (\r
+ VOID\r
+ )\r
+{\r
+ return HyperPage != NULL;\r
+}\r
+\r
//\r
// Interface exposed by the ASM implementation of the core hypercall\r
//\r