Go to the documentation of this file.
7 #ifndef _ASM_ARM_XEN_INTERFACE_H
8 #define _ASM_ARM_XEN_INTERFACE_H
10 #include <linux/types.h>
12 #define uint64_aligned_t uint64_t __attribute__((aligned(8)))
14 #define __DEFINE_GUEST_HANDLE(name, type) \
15 typedef struct { union { type *p; uint64_aligned_t q; }; } \
16 __guest_handle_ ## name
18 #define DEFINE_GUEST_HANDLE_STRUCT(name) \
19 __DEFINE_GUEST_HANDLE(name, struct name)
20 #define DEFINE_GUEST_HANDLE(name) __DEFINE_GUEST_HANDLE(name, name)
21 #define GUEST_HANDLE(name) __guest_handle_ ## name
23 #define set_xen_guest_handle(hnd, val) \
25 if (sizeof(hnd) == 8) \
26 *(uint64_t *)&(hnd) = 0; \
40 #define PRI_xen_pfn "llx"
42 #define PRI_xen_ulong "llx"
54 #define MAX_VIRT_CPUS 1