TianoCore EDK2 master
Loading...
Searching...
No Matches
XenHypercall.c File Reference
#include <PiDxe.h>
#include <IndustryStandard/Xen/hvm/params.h>
#include <IndustryStandard/Xen/memory.h>
#include <Library/DebugLib.h>
#include <Library/XenHypercallLib.h>

Go to the source code of this file.

Functions

RETURN_STATUS EFIAPI XenHypercallLibConstruct (VOID)
 
UINT64 EFIAPI XenHypercallHvmGetParam (IN UINT32 Index)
 
INTN EFIAPI XenHypercallMemoryOp (IN UINTN Operation, IN OUT VOID *Arguments)
 
INTN EFIAPI XenHypercallEventChannelOp (IN INTN Operation, IN OUT VOID *Arguments)
 
INTN EFIAPI XenHypercallSchedOp (IN INTN Operation, IN OUT VOID *Arguments)
 

Detailed Description

Functions to make Xen hypercalls.

Copyright (C) 2014, Citrix Ltd.

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

Definition in file XenHypercall.c.

Function Documentation

◆ XenHypercallEventChannelOp()

INTN EFIAPI XenHypercallEventChannelOp ( IN INTN  Operation,
IN OUT VOID *  Arguments 
)

Do an operation on the event channels.

Parameters
OperationThe operation number, e.g. EVTCHNOP_send.
ArgumentsThe argument associated to the operation.
Returns
Return the return value from the hypercall, 0 in case of success otherwise, an error code.

Definition at line 79 of file XenHypercall.c.

◆ XenHypercallHvmGetParam()

UINT64 EFIAPI XenHypercallHvmGetParam ( IN UINT32  Index)

Definition at line 36 of file XenHypercall.c.

◆ XenHypercallLibConstruct()

RETURN_STATUS EFIAPI XenHypercallLibConstruct ( VOID  )

Definition at line 20 of file XenHypercall.c.

◆ XenHypercallMemoryOp()

INTN EFIAPI XenHypercallMemoryOp ( IN UINTN  Operation,
IN OUT VOID *  Arguments 
)

Hypercall to do different operation on the memory.

Parameters
OperationThe operation number, e.g. XENMEM_add_to_physmap.
ArgumentsThe arguments associated to the operation.
Returns
Return the return value from the hypercall, 0 in case of success otherwise, an error code.

Definition at line 65 of file XenHypercall.c.

◆ XenHypercallSchedOp()

INTN EFIAPI XenHypercallSchedOp ( IN INTN  Operation,
IN OUT VOID *  Arguments 
)

Definition at line 93 of file XenHypercall.c.