EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

OvmfPkg/PlatformPei/Xen.c File Reference

#include <PiPei.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Guid/XenInfo.h>
#include "Platform.h"

Go to the source code of this file.

Functions

EFI_STATUS XenConnect (UINT32 XenLeaf)
UINT32 XenDetect (VOID)
EFI_STATUS InitializeXen (VOID)

Variables

EFI_XEN_INFO mXenInfo

Detailed Description

Xen Platform PEI support

Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com>

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file Xen.c.


Function Documentation

EFI_STATUS InitializeXen ( VOID  )

Perform Xen PEI initialization.

Returns:
EFI_SUCCESS Xen initialized successfully
EFI_NOT_FOUND Not running under Xen

Definition at line 121 of file Xen.c.

EFI_STATUS XenConnect ( UINT32  XenLeaf)

Connects to the Hypervisor.

Parameters:
XenLeafCPUID index used to connect.
Returns:
EFI_STATUS

Definition at line 45 of file Xen.c.

UINT32 XenDetect ( VOID  )

Figures out if we are running inside Xen HVM.

Returns:
UINT32 CPUID index used to connect to HV.

Definition at line 91 of file Xen.c.


Variable Documentation

Definition at line 33 of file Xen.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines