]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/Library/XenHypercallLib.h
2 Functions declarations to make Xen hypercalls.
4 Copyright (C) 2014, Citrix Ltd.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __XEN_HYPERCALL_LIB_H__
11 #define __XEN_HYPERCALL_LIB_H__
14 Check if the Xen Hypercall library is able to make calls to the Xen
17 Client code should call further functions in this library only if, and after,
18 this function returns TRUE.
20 @retval TRUE Hypercalls are available.
21 @retval FALSE Hypercalls are not available.
25 XenHypercallIsAvailable (
30 This function will put the two arguments in the right place (registers) and
31 invoke the hypercall identified by HypercallID.
33 @param HypercallID The symbolic ID of the hypercall to be invoked
34 @param Arg1 First argument.
35 @param Arg2 Second argument.
37 @return Return 0 if success otherwise it return an errno.
48 Return the value of the HVM parameter Index.
50 @param Index The parameter to get, e.g. HVM_PARAM_STORE_EVTCHN.
52 @return The value of the asked parameter or 0 in case of error.
56 XenHypercallHvmGetParam (
61 Hypercall to do different operation on the memory.
63 @param Operation The operation number, e.g. XENMEM_add_to_physmap.
64 @param Arguments The arguments associated to the operation.
66 @return Return the return value from the hypercall, 0 in case of success
67 otherwise, an error code.
71 XenHypercallMemoryOp (
73 IN OUT VOID
*Arguments
77 Do an operation on the event channels.
79 @param Operation The operation number, e.g. EVTCHNOP_send.
80 @param Arguments The argument associated to the operation.
82 @return Return the return value from the hypercall, 0 in case of success
83 otherwise, an error code.
87 XenHypercallEventChannelOp (
89 IN OUT VOID
*Arguments