/xen-4.10.0-shim-comet/tools/libs/foreignmemory/ |
A D | core.c | 23 xenforeignmemory_handle *fmem = CONTAINER_OF(ah, *fmem, tc_ah); in all_restrict_cb() local 25 if (fmem->fd < 0) in all_restrict_cb() 35 xenforeignmemory_handle *fmem = malloc(sizeof(*fmem)); in xenforeignmemory_open() local 40 fmem->fd = -1; in xenforeignmemory_open() 41 fmem->logger = logger; in xenforeignmemory_open() 47 if (!fmem->logger) { in xenforeignmemory_open() 48 fmem->logger = fmem->logger_tofree = in xenforeignmemory_open() 57 return fmem; in xenforeignmemory_open() 63 free(fmem); in xenforeignmemory_open() 71 if ( !fmem ) in xenforeignmemory_close() [all …]
|
A D | private.h | 28 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem); 29 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem); 31 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, 35 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, 38 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, 43 void *compat_mapforeign_batch(xenforeignmem_handle *fmem, uint32_t dom, 49 xtl_log(fmem->logger, XTL_ERROR, errno, "xenforeignmemory", _f)
|
A D | freebsd.c | 34 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_open() argument 45 fmem->fd = fd; in osdep_xenforeignmemory_open() 49 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_close() argument 51 int fd = fmem->fd; in osdep_xenforeignmemory_close() 57 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_map() argument 62 int fd = fmem->fd; in osdep_xenforeignmemory_map() 92 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_unmap() argument 98 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_restrict() argument
|
A D | netbsd.c | 26 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_open() argument 53 fmem->fd = fd; in osdep_xenforeignmemory_open() 63 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_close() argument 65 int fd = fmem->fd; in osdep_xenforeignmemory_close() 69 void *osdep_map_foreign_batch(xenforeignmem_handle *fmem, uint32_t dom, in osdep_map_foreign_batch() argument 73 int fd = fmem->fd; in osdep_map_foreign_batch() 97 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_unmap() argument 103 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_restrict() argument
|
A D | solaris.c | 27 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_open() argument 54 fmem->fd = fd; in osdep_xenforeignmemory_open() 64 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_close() argument 66 int fd = fmem->fd; in osdep_xenforeignmemory_close() 70 void *osdep_map_foreign_batch(xenforeignmem_handle *fmem, uint32_t dom, in osdep_map_foreign_batch() argument 73 int fd = fmem->fd; in osdep_map_foreign_batch() 94 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_unmap() argument 100 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_restrict() argument
|
A D | minios.c | 31 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_open() argument 37 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_close() argument 42 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_map() argument 55 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_unmap() argument 61 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_restrict() argument
|
A D | linux.c | 37 int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_open() argument 56 fmem->fd = fd; in osdep_xenforeignmemory_open() 60 int osdep_xenforeignmemory_close(xenforeignmemory_handle *fmem) in osdep_xenforeignmemory_close() argument 62 int fd = fmem->fd; in osdep_xenforeignmemory_close() 144 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_map() argument 149 int fd = fmem->fd; in osdep_xenforeignmemory_map() 268 int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_unmap() argument 274 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem, in osdep_xenforeignmemory_restrict() argument 277 return ioctl(fmem->fd, IOCTL_PRIVCMD_RESTRICT, &domid); in osdep_xenforeignmemory_restrict()
|
A D | compat.c | 24 void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, uint32_t dom, in osdep_xenforeignmemory_map() argument 44 ret = osdep_map_foreign_batch(fmem, dom, addr, prot, flags, pfn, num); in osdep_xenforeignmemory_map()
|
/xen-4.10.0-shim-comet/tools/libs/foreignmemory/include/ |
A D | xenforeignmemory.h | 74 int xenforeignmemory_close(xenforeignmemory_handle *fmem); 106 void *xenforeignmemory_map(xenforeignmemory_handle *fmem, uint32_t dom, 118 void *xenforeignmemory_map2(xenforeignmemory_handle *fmem, uint32_t dom, 127 int xenforeignmemory_unmap(xenforeignmemory_handle *fmem, 138 int xenforeignmemory_restrict(xenforeignmemory_handle *fmem,
|
/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_foreign_memory.c | 31 return xenforeignmemory_map(xch->fmem, dom, prot, num, arr, NULL); in xc_map_foreign_pages() 87 return xenforeignmemory_map(xch->fmem, dom, prot, num, arr, err); in xc_map_foreign_bulk()
|
A D | xc_private.c | 66 xch->fmem = xenforeignmemory_open(xch->error_handler, 0); in xc_interface_open() 67 if ( xch->fmem == NULL ) in xc_interface_open() 77 xenforeignmemory_close(xch->fmem); in xc_interface_open() 94 rc = xenforeignmemory_close(xch->fmem); in xc_interface_close()
|
A D | xc_vm_event.c | 150 xenforeignmemory_unmap(xch->fmem, ring_page, 1); in xc_vm_event_enable()
|
A D | xc_tbuf.c | 77 xenforeignmemory_unmap(xch->fmem, t_info, sysctl.u.tbuf_op.size); in xc_tbuf_get_size()
|
A D | xc_sr_restore.c | 258 mapping = guest_page = xenforeignmemory_map(xch->fmem, in process_page_data() 320 xenforeignmemory_unmap(xch->fmem, mapping, nr_pages); in process_page_data()
|
A D | xc_private.h | 100 xenforeignmemory_handle *fmem; member
|
A D | xc_sr_save.c | 156 guest_mapping = xenforeignmemory_map(xch->fmem, in write_batch() 266 xenforeignmemory_unmap(xch->fmem, guest_mapping, nr_pages_mapped); in write_batch()
|