OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
XenPlatformLib.h File Reference

Functions

BOOLEAN EFIAPI XenDetected (VOID)
 
BOOLEAN EFIAPI XenPvhDetected (VOID)
 
EFI_XEN_INFO *EFIAPI XenGetInfoHOB (VOID)
 

Detailed Description

Get information about Xen

This library simply allow to find out if OVMF is running under Xen and allow to get more information when it is the case.

Copyright (c) 2019, Citrix Systems, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Function Documentation

BOOLEAN EFIAPI XenDetected ( VOID  )

This function detects if OVMF is running on Xen.

Return values
TRUEOVMF is running on Xen
FALSEXen has not been detected
EFI_XEN_INFO* EFIAPI XenGetInfoHOB ( VOID  )

This function return a pointer to the XenInfo HOB.

Returns
XenInfo pointer or NULL if not available
BOOLEAN EFIAPI XenPvhDetected ( VOID  )

This function detect if OVMF have started via the PVH entry point.

Return values
TRUEPVH entry point as been used
FALSEOVMF have started via the HVM route