Home
last modified time | relevance | path

Searched refs:fmem (Results 1 – 16 of 16) sorted by relevance

/xen-4.10.0-shim-comet/tools/libs/foreignmemory/
A Dcore.c23 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 Dprivate.h28 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 Dfreebsd.c34 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 Dnetbsd.c26 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 Dsolaris.c27 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 Dminios.c31 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 Dlinux.c37 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 Dcompat.c24 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 Dxenforeignmemory.h74 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 Dxc_foreign_memory.c31 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 Dxc_private.c66 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 Dxc_vm_event.c150 xenforeignmemory_unmap(xch->fmem, ring_page, 1); in xc_vm_event_enable()
A Dxc_tbuf.c77 xenforeignmemory_unmap(xch->fmem, t_info, sysctl.u.tbuf_op.size); in xc_tbuf_get_size()
A Dxc_sr_restore.c258 mapping = guest_page = xenforeignmemory_map(xch->fmem, in process_page_data()
320 xenforeignmemory_unmap(xch->fmem, mapping, nr_pages); in process_page_data()
A Dxc_private.h100 xenforeignmemory_handle *fmem; member
A Dxc_sr_save.c156 guest_mapping = xenforeignmemory_map(xch->fmem, in write_batch()
266 xenforeignmemory_unmap(xch->fmem, guest_mapping, nr_pages_mapped); in write_batch()

Completed in 23 milliseconds