TianoCore EDK2 master
Loading...
Searching...
No Matches
XenPlatformLib.c File Reference
#include <PiDxe.h>
#include <Library/HobLib.h>
#include <Library/XenPlatformLib.h>

Go to the source code of this file.

Functions

EFI_XEN_INFO *EFIAPI XenGetInfoHOB (VOID)
 
BOOLEAN EFIAPI XenDetected (VOID)
 
BOOLEAN EFIAPI XenPvhDetected (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.c.

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.