]>
Commit | Line | Data |
---|---|---|
f496443e AP |
1 | /** @file\r |
2 | Get information about Xen\r | |
3 | \r | |
4 | This library simply allow to find out if OVMF is running under Xen and\r | |
5 | allow to get more information when it is the case.\r | |
6 | \r | |
7 | Copyright (c) 2019, Citrix Systems, Inc.\r | |
8 | \r | |
9 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
10 | \r | |
11 | **/\r | |
12 | \r | |
13 | #ifndef _XEN_PLATFORM_LIB_H_\r | |
14 | #define _XEN_PLATFORM_LIB_H_\r | |
15 | \r | |
16 | #include <Guid/XenInfo.h>\r | |
17 | \r | |
18 | /**\r | |
19 | This function detects if OVMF is running on Xen.\r | |
20 | \r | |
21 | @retval TRUE OVMF is running on Xen\r | |
22 | @retval FALSE Xen has not been detected\r | |
23 | **/\r | |
24 | BOOLEAN\r | |
25 | EFIAPI\r | |
26 | XenDetected (\r | |
27 | VOID\r | |
28 | );\r | |
29 | \r | |
30 | /**\r | |
31 | This function detect if OVMF have started via the PVH entry point.\r | |
32 | \r | |
33 | @retval TRUE PVH entry point as been used\r | |
34 | @retval FALSE OVMF have started via the HVM route\r | |
35 | **/\r | |
36 | BOOLEAN\r | |
37 | EFIAPI\r | |
38 | XenPvhDetected (\r | |
39 | VOID\r | |
40 | );\r | |
41 | \r | |
42 | /**\r | |
43 | This function return a pointer to the XenInfo HOB.\r | |
44 | \r | |
45 | @return XenInfo pointer or NULL if not available\r | |
46 | **/\r | |
47 | EFI_XEN_INFO *\r | |
48 | EFIAPI\r | |
49 | XenGetInfoHOB (\r | |
50 | VOID\r | |
51 | );\r | |
52 | \r | |
53 | #endif\r |