]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/Library/XenPlatformLib.h
2 Get information about Xen
4 This library simply allow to find out if OVMF is running under Xen and
5 allow to get more information when it is the case.
7 Copyright (c) 2019, Citrix Systems, Inc.
9 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #ifndef _XEN_PLATFORM_LIB_H_
14 #define _XEN_PLATFORM_LIB_H_
16 #include <Guid/XenInfo.h>
19 This function detects if OVMF is running on Xen.
21 @retval TRUE OVMF is running on Xen
22 @retval FALSE Xen has not been detected
31 This function detect if OVMF have started via the PVH entry point.
33 @retval TRUE PVH entry point as been used
34 @retval FALSE OVMF have started via the HVM route
43 This function return a pointer to the XenInfo HOB.
45 @return XenInfo pointer or NULL if not available