Xen Test Framework
grant_table.h
Go to the documentation of this file.
1
6#ifndef XTF_GRANT_TABLE_H
7#define XTF_GRANT_TABLE_H
8
9#include <xtf/hypercall.h>
10
16
19 sizeof(gnttab_raw) / sizeof(grant_entry_v1_t)];
20
23 sizeof(gnttab_raw) / sizeof(grant_entry_v2_t)];
24
28int arch_map_gnttab(void);
29
30
36const char *gntst_strerror(int err);
37
45int xtf_init_grant_table(unsigned int version);
46
47#endif /* XTF_GRANT_TABLE_H */
48
49/*
50 * Local variables:
51 * mode: C
52 * c-file-style: "BSD"
53 * c-basic-offset: 4
54 * tab-width: 4
55 * indent-tabs-mode: nil
56 * End:
57 */
#define PAGE_SIZE
Definition: page.h:11
__UINT8_TYPE__ uint8_t
Definition: stdint.h:14
Definition: grant_table.h:106
Definition: grant_table.h:125
grant_entry_v2_t gnttab_v2[sizeof(gnttab_raw)/sizeof(grant_entry_v2_t)]
Grant table in v2 format (aliases gnttab_raw).
uint8_t gnttab_raw[PAGE_SIZE]
Raw grant table mapping from Xen.
Definition: grant_table.c:9
const char * gntst_strerror(int err)
Convert a grant status error value to a string.
Definition: grant_table.c:13
int arch_map_gnttab(void)
Map the domains grant table under gnttab_raw[].
Definition: grant_table.c:13
grant_entry_v1_t gnttab_v1[sizeof(gnttab_raw)/sizeof(grant_entry_v1_t)]
Grant table in v1 format (aliases gnttab_raw).
int xtf_init_grant_table(unsigned int version)
Initialise XTF's grant infrastructure.
Definition: grant_table.c:21