16 unsigned int idx = -err;
18 return idx <
ARRAY_SIZE(errstr) ? errstr[idx] :
"unknown";
25 static bool set_version_unavailable;
26 if ( !set_version_unavailable )
34 set_version_unavailable =
true;
38 printk(
"%s() GNTTABOP_set_version failed: rc %d\n", __func__, rc);
43 if ( set_version_unavailable &&
version != 1 )
47 static bool gnttab_mapped;
int arch_map_gnttab(void)
Map the domains grant table under gnttab_raw[].
grant_entry_v1_t gnttab_v1[]
const char * gntst_strerror(int err)
Convert a grant status error value to a string.
grant_entry_v2_t gnttab_v2[]
uint8_t gnttab_raw[]
Raw grant table mapping from Xen.
int xtf_init_grant_table(unsigned int version)
Initialise XTF's grant infrastructure.
#define __page_aligned_bss
void printk(const char *fmt,...)
static long hypercall_grant_table_op(unsigned int cmd, void *args, unsigned int count)
#define GNTTABOP_error_msgs
#define GNTTABOP_set_version
A driver for the Xen Grant Table interface.