/xen/xen/include/asm-x86/ |
A D | guest_access.h | 42 #define guest_handle_is_null(hnd) ((hnd).p == NULL) argument 45 #define guest_handle_add_offset(hnd, nr) ((hnd).p += (nr)) argument 46 #define guest_handle_subtract_offset(hnd, nr) ((hnd).p -= (nr)) argument 50 #define guest_handle_cast(hnd, type) ({ \ argument 51 type *_x = (hnd).p; \ 66 ((XEN_GUEST_HANDLE(type)) { &(hnd).p->fld }) 96 #define clear_guest_offset(hnd, off, nr) ({ \ argument 97 void *_d = (hnd).p; \ 122 array_access_ok((hnd).p, (nr), sizeof(*(hnd).p))) 127 sizeof(*(hnd).p))) [all …]
|
/xen/xen/include/asm-arm/ |
A D | guest_access.h | 30 #define guest_handle_is_null(hnd) ((hnd).p == NULL) argument 33 #define guest_handle_add_offset(hnd, nr) ((hnd).p += (nr)) argument 34 #define guest_handle_subtract_offset(hnd, nr) ((hnd).p -= (nr)) argument 38 #define guest_handle_cast(hnd, type) ({ \ argument 39 type *_x = (hnd).p; \ 45 typeof((hnd).p) _x = (hnd).p; \ 54 #define guest_handle_for_field(hnd, type, fld) \ argument 55 ((XEN_GUEST_HANDLE(type)) { &(hnd).p->fld }) 79 #define clear_guest_offset(hnd, off, nr) ({ \ argument 80 void *_d = (hnd).p; \ [all …]
|
/xen/xen/include/xen/ |
A D | compat.h | 29 #define compat_handle_is_null(hnd) ((hnd).c == 0) argument 33 ((hnd).c += (nr) * sizeof(**(hnd)._)) 52 ((void)((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c == (ptr))); \ 61 const typeof(*(ptr)) *_s = (typeof(**(hnd)._) *)(full_ptr_t)(hnd).c; \ 75 void *_d = &((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c)->field; \ 76 ((void)(&((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c)->field == \ 84 &((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c)->field; \ 101 ((void)((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c == (ptr))); \ 119 void *_d = &((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c)->field; \ 120 ((void)(&((typeof(**(hnd)._) *)(full_ptr_t)(hnd).c)->field == \ [all …]
|
A D | guest_access.h | 14 #define copy_to_guest(hnd, ptr, nr) \ argument 15 copy_to_guest_offset(hnd, 0, ptr, nr) 17 #define copy_from_guest(ptr, hnd, nr) \ argument 18 copy_from_guest_offset(ptr, hnd, 0, nr) 20 #define clear_guest(hnd, nr) \ argument 21 clear_guest_offset(hnd, 0, nr) 23 #define __copy_to_guest(hnd, ptr, nr) \ argument 24 __copy_to_guest_offset(hnd, 0, ptr, nr) 26 #define __copy_from_guest(ptr, hnd, nr) \ argument 27 __copy_from_guest_offset(ptr, hnd, 0, nr) [all …]
|
/xen/xen/include/public/arch-x86/ |
A D | xen-x86_32.h | 100 #define set_xen_guest_handle_raw(hnd, val) \ argument 101 do { if ( sizeof(hnd) == 8 ) *(uint64_t *)&(hnd) = 0; \ 102 (hnd).p = val; \
|
A D | xen.h | 56 #define set_xen_guest_handle_raw(hnd, val) do { (hnd).p = val; } while (0) argument 57 #define set_xen_guest_handle(hnd, val) set_xen_guest_handle_raw(hnd, val) argument
|
/xen/xen/include/public/ |
A D | arch-arm.h | 192 #define set_xen_guest_handle_raw(hnd, val) \ argument 194 typeof(&(hnd)) _sxghr_tmp = &(hnd); \ 198 #define set_xen_guest_handle(hnd, val) set_xen_guest_handle_raw(hnd, val) argument
|
/xen/xen/common/compat/ |
A D | memory.c | 66 XEN_GUEST_HANDLE_PARAM(void) hnd; in compat_memory_op() 86 set_xen_guest_handle(nat.hnd, COMPAT_ARG_XLAT_VIRT_BASE); in compat_memory_op() 237 nat.hnd = compat; in compat_memory_op() 455 rc = do_memory_op(cmd, nat.hnd); in compat_memory_op() 470 if ( hypercall_xlat_continuation(&cmd, 2, 0x02, nat.hnd, compat) ) in compat_memory_op()
|
/xen/xen/common/ |
A D | memory.c | 101 unsigned long __copy_mfn_to_guest_offset(XEN_GUEST_HANDLE(xen_pfn_t) hnd, in __copy_mfn_to_guest_offset() argument 106 return __copy_to_guest_offset(hnd, off, &mfn_, 1); in __copy_mfn_to_guest_offset()
|
/xen/xen/arch/x86/hvm/ |
A D | hvm.c | 4891 XEN_GUEST_HANDLE_PARAM(void) hnd; in compat_altp2m_op() 4905 set_xen_guest_handle(nat.hnd, COMPAT_ARG_XLAT_VIRT_BASE); in compat_altp2m_op() 4931 rc = do_altp2m_op(nat.hnd); in compat_altp2m_op()
|