TianoCore EDK2 master
Loading...
Searching...
No Matches
XenPlatformLib.h File Reference
#include <Guid/XenInfo.h>

Go to the source code of this file.

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

Definition in file XenPlatformLib.h.

Function Documentation

◆ XenDetected()

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

Definition at line 59 of file XenPlatformLib.c.

◆ XenGetInfoHOB()

EFI_XEN_INFO *EFIAPI XenGetInfoHOB ( VOID  )

This function return a pointer to the XenInfo HOB.

Returns
XenInfo pointer or NULL if not available

Definition at line 24 of file XenPlatformLib.c.

◆ XenPvhDetected()

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

Definition at line 74 of file XenPlatformLib.c.