TianoCore EDK2 master
|
Go to the source code of this file.
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) |
INTN EFIAPI | XenHypercallSchedOp (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
Definition in file XenHypercallLib.h.
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. |
Definition at line 141 of file X86XenHypercall.c.
Do an operation on the event channels.
Operation | The operation number, e.g. EVTCHNOP_send. |
Arguments | The argument associated to the operation. |
Definition at line 79 of file XenHypercall.c.
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. |
Definition at line 24 of file ArmXenHypercall.c.
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.
Library constructor: Check for Xen leaf in CPUID
Definition at line 33 of file ArmXenHypercall.c.
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. |
Definition at line 65 of file XenHypercall.c.