TianoCore EDK2 master
|
#include <IndustryStandard/Xen/grant_table.h>
Go to the source code of this file.
Functions | |
VOID | XenGrantTableInit (IN XENBUS_DEVICE *Dev) |
VOID | XenGrantTableDeinit (IN XENBUS_DEVICE *Dev) |
EFI_STATUS EFIAPI | XenBusGrantAccess (IN XENBUS_PROTOCOL *This, IN domid_t DomainId, IN UINTN Frame, IN BOOLEAN ReadOnly, OUT grant_ref_t *RefPtr) |
EFI_STATUS EFIAPI | XenBusGrantEndAccess (IN XENBUS_PROTOCOL *This, IN grant_ref_t Ref) |
Grant Table function declaration.
Grant Table are used to grant access to certain page of the current VM to an other VM.
Copyright (C) 2014, Citrix Ltd.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file GrantTable.h.
EFI_STATUS EFIAPI XenBusGrantAccess | ( | IN XENBUS_PROTOCOL * | This, |
IN domid_t | DomainId, | ||
IN UINTN | Frame, | ||
IN BOOLEAN | ReadOnly, | ||
OUT grant_ref_t * | RefPtr | ||
) |
Grant access to the page Frame to the domain DomainId.
This | A pointer to XENBUS_PROTOCOL instance. |
DomainId | ID of the domain to grant access to. |
Frame | Frame Number of the page to grant access to. |
ReadOnly | Provide read-only or read-write access. |
RefPtr | Reference number of the grant will be written to this pointer. |
Definition at line 191 of file GrantTable.c.
EFI_STATUS EFIAPI XenBusGrantEndAccess | ( | IN XENBUS_PROTOCOL * | This, |
IN grant_ref_t | Ref | ||
) |
End access to grant Ref, previously return by XenBusGrantAccess.
This | A pointer to XENBUS_PROTOCOL instance. |
Ref | Reference numeber of a grant previously returned by XenBusGrantAccess. |
Definition at line 205 of file GrantTable.c.
VOID XenGrantTableDeinit | ( | IN XENBUS_DEVICE * | Dev | ) |
De-initialize the Grant Table.
VOID XenGrantTableInit | ( | IN XENBUS_DEVICE * | Dev | ) |
Initialize the Grant Table at the address MmioAddr.
Dev | A pointer to XENBUS_DEVICE. |
MmioAddr | An address where the grant table can be mapped into the guest. |
Definition at line 123 of file GrantTable.c.