OvmfPkg[all]
0.1
|
Functions | |
RETURN_STATUS EFIAPI | XenHypercallLibInit (VOID) |
BOOLEAN EFIAPI | XenHypercallIsAvailable (VOID) |
INTN EFIAPI | XenHypercall2 (IN UINTN HypercallID, IN OUT INTN Arg1, IN OUT INTN Arg2) |
UINT64 EFIAPI | XenHypercallHvmGetParam (UINT32 Index) |
INTN EFIAPI | XenHypercallMemoryOp (IN UINTN Operation, IN OUT VOID *Arguments) |
INTN EFIAPI | XenHypercallEventChannelOp (IN INTN Operation, IN OUT VOID *Arguments) |
Functions declarations to make Xen hypercalls.
Copyright (C) 2014, Citrix Ltd.
SPDX-License-Identifier: BSD-2-Clause-Patent
INTN EFIAPI XenHypercall2 | ( | IN UINTN | HypercallID, |
IN OUT INTN | Arg1, | ||
IN OUT INTN | Arg2 | ||
) |
This function will put the two arguments in the right place (registers) and invoke the hypercall identified by HypercallID.
HypercallID | The symbolic ID of the hypercall to be invoked |
Arg1 | First argument. |
Arg2 | Second argument. |
INTN EFIAPI XenHypercallEventChannelOp | ( | IN INTN | Operation, |
IN OUT VOID * | Arguments | ||
) |
Do an operation on the event channels.
Operation | The operation number, e.g. EVTCHNOP_send. |
Arguments | The argument associated to the operation. |
UINT64 EFIAPI XenHypercallHvmGetParam | ( | UINT32 | Index | ) |
Return the value of the HVM parameter Index.
Index | The parameter to get, e.g. HVM_PARAM_STORE_EVTCHN. |
BOOLEAN EFIAPI XenHypercallIsAvailable | ( | VOID | ) |
Check if the Xen Hypercall library is able to make calls to the Xen hypervisor.
Client code should call further functions in this library only if, and after, this function returns TRUE.
TRUE | Hypercalls are available. |
FALSE | Hypercalls are not available. |
RETURN_STATUS EFIAPI XenHypercallLibInit | ( | VOID | ) |
To call when the gEfiXenInfoGuid HOB became available after the library init function has already been executed.
This allow to make hypercall in the PEIM stage.
INTN EFIAPI XenHypercallMemoryOp | ( | IN UINTN | Operation, |
IN OUT VOID * | Arguments | ||
) |
Hypercall to do different operation on the memory.
Operation | The operation number, e.g. XENMEM_add_to_physmap. |
Arguments | The arguments associated to the operation. |