Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
grant_table.h File Reference
#include <asm/page.h>
#include <xen/interface/xen.h>
#include <xen/interface/grant_table.h>
#include <asm/xen/hypervisor.h>
#include <xen/features.h>

Go to the source code of this file.

Data Structures

struct  gnttab_free_callback
 

Macros

#define GNTTAB_RESERVED_XENSTORE   1
 
#define NR_GRANT_FRAMES   4
 
#define gnttab_map_vaddr(map)   ((void *)(map.host_virt_addr))
 

Functions

int gnttab_init (void)
 
int gnttab_suspend (void)
 
int gnttab_resume (void)
 
int gnttab_grant_foreign_access (domid_t domid, unsigned long frame, int readonly)
 
int gnttab_grant_foreign_access_subpage (domid_t domid, unsigned long frame, int flags, unsigned page_off, unsigned length)
 
int gnttab_grant_foreign_access_trans (domid_t domid, int flags, domid_t trans_domid, grant_ref_t trans_gref)
 
bool gnttab_subpage_grants_available (void)
 
bool gnttab_trans_grants_available (void)
 
int gnttab_end_foreign_access_ref (grant_ref_t ref, int readonly)
 
void gnttab_end_foreign_access (grant_ref_t ref, int readonly, unsigned long page)
 
int gnttab_grant_foreign_transfer (domid_t domid, unsigned long pfn)
 
unsigned long gnttab_end_foreign_transfer_ref (grant_ref_t ref)
 
unsigned long gnttab_end_foreign_transfer (grant_ref_t ref)
 
int gnttab_query_foreign_access (grant_ref_t ref)
 
int gnttab_alloc_grant_references (u16 count, grant_ref_t *pprivate_head)
 
void gnttab_free_grant_reference (grant_ref_t ref)
 
void gnttab_free_grant_references (grant_ref_t head)
 
int gnttab_empty_grant_references (const grant_ref_t *pprivate_head)
 
int gnttab_claim_grant_reference (grant_ref_t *pprivate_head)
 
void gnttab_release_grant_reference (grant_ref_t *private_head, grant_ref_t release)
 
void gnttab_request_free_callback (struct gnttab_free_callback *callback, void(*fn)(void *), void *arg, u16 count)
 
void gnttab_cancel_free_callback (struct gnttab_free_callback *callback)
 
void gnttab_grant_foreign_access_ref (grant_ref_t ref, domid_t domid, unsigned long frame, int readonly)
 
int gnttab_grant_foreign_access_subpage_ref (grant_ref_t ref, domid_t domid, unsigned long frame, int flags, unsigned page_off, unsigned length)
 
int gnttab_grant_foreign_access_trans_ref (grant_ref_t ref, domid_t domid, int flags, domid_t trans_domid, grant_ref_t trans_gref)
 
void gnttab_grant_foreign_transfer_ref (grant_ref_t, domid_t domid, unsigned long pfn)
 
int arch_gnttab_map_shared (xen_pfn_t *frames, unsigned long nr_gframes, unsigned long max_nr_gframes, void **__shared)
 
int arch_gnttab_map_status (uint64_t *frames, unsigned long nr_gframes, unsigned long max_nr_gframes, grant_status_t **__shared)
 
void arch_gnttab_unmap (void *shared, unsigned long nr_gframes)
 
unsigned int gnttab_max_grant_frames (void)
 
int gnttab_map_refs (struct gnttab_map_grant_ref *map_ops, struct gnttab_map_grant_ref *kmap_ops, struct page **pages, unsigned int count)
 
int gnttab_unmap_refs (struct gnttab_unmap_grant_ref *unmap_ops, struct gnttab_map_grant_ref *kunmap_ops, struct page **pages, unsigned int count)
 
void gnttab_batch_map (struct gnttab_map_grant_ref *batch, unsigned count)
 
void gnttab_batch_copy (struct gnttab_copy *batch, unsigned count)
 

Variables

unsigned long xen_hvm_resume_frames
 

Macro Definition Documentation

#define gnttab_map_vaddr (   map)    ((void *)(map.host_virt_addr))

Definition at line 184 of file grant_table.h.

#define GNTTAB_RESERVED_XENSTORE   1

Definition at line 49 of file grant_table.h.

#define NR_GRANT_FRAMES   4

Definition at line 52 of file grant_table.h.

Function Documentation

int arch_gnttab_map_shared ( xen_pfn_t frames,
unsigned long  nr_gframes,
unsigned long  max_nr_gframes,
void **  __shared 
)

Definition at line 36 of file grant-table.c.

int arch_gnttab_map_status ( uint64_t frames,
unsigned long  nr_gframes,
unsigned long  max_nr_gframes,
grant_status_t **  __shared 
)

Definition at line 48 of file grant-table.c.

void arch_gnttab_unmap ( void shared,
unsigned long  nr_gframes 
)

Definition at line 43 of file grant-table.c.

int gnttab_alloc_grant_references ( u16  count,
grant_ref_t pprivate_head 
)

Definition at line 694 of file grant-table.c.

void gnttab_batch_copy ( struct gnttab_copy batch,
unsigned  count 
)

Definition at line 860 of file grant-table.c.

void gnttab_batch_map ( struct gnttab_map_grant_ref batch,
unsigned  count 
)

Definition at line 847 of file grant-table.c.

void gnttab_cancel_free_callback ( struct gnttab_free_callback callback)

Definition at line 749 of file grant-table.c.

int gnttab_claim_grant_reference ( grant_ref_t pprivate_head)

Definition at line 713 of file grant-table.c.

int gnttab_empty_grant_references ( const grant_ref_t pprivate_head)

Definition at line 707 of file grant-table.c.

void gnttab_end_foreign_access ( grant_ref_t  ref,
int  readonly,
unsigned long  page 
)

Definition at line 558 of file grant-table.c.

int gnttab_end_foreign_access_ref ( grant_ref_t  ref,
int  readonly 
)

Definition at line 466 of file grant-table.c.

unsigned long gnttab_end_foreign_transfer ( grant_ref_t  ref)

Definition at line 659 of file grant-table.c.

unsigned long gnttab_end_foreign_transfer_ref ( grant_ref_t  ref)

Definition at line 653 of file grant-table.c.

void gnttab_free_grant_reference ( grant_ref_t  ref)

Definition at line 667 of file grant-table.c.

void gnttab_free_grant_references ( grant_ref_t  head)

Definition at line 673 of file grant-table.c.

int gnttab_grant_foreign_access ( domid_t  domid,
unsigned long  frame,
int  readonly 
)

Definition at line 275 of file grant-table.c.

void gnttab_grant_foreign_access_ref ( grant_ref_t  ref,
domid_t  domid,
unsigned long  frame,
int  readonly 
)

Definition at line 267 of file grant-table.c.

int gnttab_grant_foreign_access_subpage ( domid_t  domid,
unsigned long  frame,
int  flags,
unsigned  page_off,
unsigned  length 
)

Definition at line 322 of file grant-table.c.

int gnttab_grant_foreign_access_subpage_ref ( grant_ref_t  ref,
domid_t  domid,
unsigned long  frame,
int  flags,
unsigned  page_off,
unsigned  length 
)

Definition at line 303 of file grant-table.c.

int gnttab_grant_foreign_access_trans ( domid_t  domid,
int  flags,
domid_t  trans_domid,
grant_ref_t  trans_gref 
)

Definition at line 379 of file grant-table.c.

int gnttab_grant_foreign_access_trans_ref ( grant_ref_t  ref,
domid_t  domid,
int  flags,
domid_t  trans_domid,
grant_ref_t  trans_gref 
)

Definition at line 361 of file grant-table.c.

int gnttab_grant_foreign_transfer ( domid_t  domid,
unsigned long  pfn 
)

Definition at line 571 of file grant-table.c.

void gnttab_grant_foreign_transfer_ref ( grant_ref_t  ,
domid_t  domid,
unsigned long  pfn 
)

Definition at line 584 of file grant-table.c.

int gnttab_init ( void  )

Definition at line 1187 of file grant-table.c.

int gnttab_map_refs ( struct gnttab_map_grant_ref map_ops,
struct gnttab_map_grant_ref kmap_ops,
struct page **  pages,
unsigned int  count 
)

Definition at line 873 of file grant-table.c.

unsigned int gnttab_max_grant_frames ( void  )

Definition at line 817 of file grant-table.c.

int gnttab_query_foreign_access ( grant_ref_t  ref)

Definition at line 416 of file grant-table.c.

void gnttab_release_grant_reference ( grant_ref_t private_head,
grant_ref_t  release 
)

Definition at line 723 of file grant-table.c.

void gnttab_request_free_callback ( struct gnttab_free_callback callback,
void(*)(void *)  fn,
void arg,
u16  count 
)

Definition at line 731 of file grant-table.c.

int gnttab_resume ( void  )

Definition at line 1136 of file grant-table.c.

bool gnttab_subpage_grants_available ( void  )

Definition at line 343 of file grant-table.c.

int gnttab_suspend ( void  )

Definition at line 1163 of file grant-table.c.

bool gnttab_trans_grants_available ( void  )

Definition at line 400 of file grant-table.c.

int gnttab_unmap_refs ( struct gnttab_unmap_grant_ref unmap_ops,
struct gnttab_map_grant_ref kunmap_ops,
struct page **  pages,
unsigned int  count 
)

Definition at line 925 of file grant-table.c.

Variable Documentation

unsigned long xen_hvm_resume_frames

Definition at line 70 of file grant-table.c.