TianoCore EDK2 master
Loading...
Searching...
No Matches
GrantTable.h File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ XenBusGrantAccess()

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.

Parameters
ThisA pointer to XENBUS_PROTOCOL instance.
DomainIdID of the domain to grant access to.
FrameFrame Number of the page to grant access to.
ReadOnlyProvide read-only or read-write access.
RefPtrReference number of the grant will be written to this pointer.

Definition at line 191 of file GrantTable.c.

◆ XenBusGrantEndAccess()

EFI_STATUS EFIAPI XenBusGrantEndAccess ( IN XENBUS_PROTOCOL This,
IN grant_ref_t  Ref 
)

End access to grant Ref, previously return by XenBusGrantAccess.

Parameters
ThisA pointer to XENBUS_PROTOCOL instance.
RefReference numeber of a grant previously returned by XenBusGrantAccess.

Definition at line 205 of file GrantTable.c.

◆ XenGrantTableDeinit()

VOID XenGrantTableDeinit ( IN XENBUS_DEVICE Dev)

De-initialize the Grant Table.

◆ XenGrantTableInit()

VOID XenGrantTableInit ( IN XENBUS_DEVICE Dev)

Initialize the Grant Table at the address MmioAddr.

Parameters
DevA pointer to XENBUS_DEVICE.
MmioAddrAn address where the grant table can be mapped into the guest.

Definition at line 123 of file GrantTable.c.