Home
last modified time | relevance | path

Searched refs:xcall (Results 1 – 21 of 21) sorted by relevance

/xen-4.10.0-shim-comet/tools/libs/call/
A Dbuffer.c53 cache_lock(xcall); in cache_alloc()
57 if ( xcall->buffer_current_allocations > xcall->buffer_maximum_allocations ) in cache_alloc()
58 xcall->buffer_maximum_allocations = xcall->buffer_current_allocations; in cache_alloc()
66 p = xcall->buffer_cache[--xcall->buffer_cache_nr]; in cache_alloc()
74 cache_unlock(xcall); in cache_alloc()
83 cache_lock(xcall); in cache_free()
91 xcall->buffer_cache[xcall->buffer_cache_nr++] = p; in cache_free()
95 cache_unlock(xcall); in cache_free()
104 cache_lock(xcall); in buffer_release_cache()
121 p = xcall->buffer_cache[--xcall->buffer_cache_nr]; in buffer_release_cache()
[all …]
A Dcore.c21 xencall_handle *xcall = CONTAINER_OF(ah, *xcall, tc_ah); in all_restrict_cb() local
27 xencall_handle *xcall = malloc(sizeof(*xcall)); in xencall_open() local
30 if (!xcall) return NULL; in xencall_open()
32 xcall->fd = -1; in xencall_open()
46 xcall->logger = logger; in xencall_open()
49 if (!xcall->logger) { in xencall_open()
50 xcall->logger = xcall->logger_tofree = in xencall_open()
59 return xcall; in xencall_open()
65 free(xcall); in xencall_open()
73 if ( !xcall ) in xencall_close()
[all …]
A Dsolaris.c29 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument
56 xcall->fd = fd; in osdep_xencall_open()
66 int osdep_xencall_close(xencall_handle *xcall) in osdep_xencall_close() argument
68 int fd = xcall->fd; in osdep_xencall_close()
72 void *osdep_alloc_hypercall_buffer(xencall_handle *xcall, size_t npages) in osdep_alloc_hypercall_buffer() argument
77 void osdep_free_hypercall_buffer(xencall_handle *xcall, void *ptr, in osdep_free_hypercall_buffer() argument
83 int do_xen_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall) in do_xen_hypercall() argument
85 int fd = xcall->fd; in do_xen_hypercall()
A Dfreebsd.c36 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument
53 xcall->fd = fd; in osdep_xencall_open()
57 int osdep_xencall_close(xencall_handle *xcall) in osdep_xencall_close() argument
59 int fd = xcall->fd; in osdep_xencall_close()
65 int osdep_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall) in osdep_hypercall() argument
67 int fd = xcall->fd; in osdep_hypercall()
75 void *osdep_alloc_pages(xencall_handle *xcall, size_t npages) in osdep_alloc_pages() argument
99 void osdep_free_pages(xencall_handle *xcall, void *ptr, size_t npages) in osdep_free_pages() argument
A Dprivate.h48 int osdep_xencall_open(xencall_handle *xcall);
49 int osdep_xencall_close(xencall_handle *xcall);
51 int osdep_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall);
53 void *osdep_alloc_pages(xencall_handle *xcall, size_t nr_pages);
54 void osdep_free_pages(xencall_handle *xcall, void *p, size_t nr_pages);
56 void buffer_release_cache(xencall_handle *xcall);
58 #define PERROR(_f...) xtl_log(xcall->logger, XTL_ERROR, errno, "xencall", _f)
A Dnetbsd.c29 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument
56 xcall->fd = fd; in osdep_xencall_open()
66 int osdep_xencall_close(xencall_handle *xcall) in osdep_xencall_close() argument
68 int fd = xcall->fd; in osdep_xencall_close()
72 void *osdep_alloc_hypercall_buffer(xencall_handle *xcall, size_t npages) in osdep_alloc_hypercall_buffer() argument
89 void osdep_free_hypercall_buffer(xencall_handle *xcall, void *ptr, in osdep_free_hypercall_buffer() argument
96 int do_xen_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall) in do_xen_hypercall() argument
98 int fd = xcall->fd; in do_xen_hypercall()
A Dlinux.c37 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument
58 xcall->fd = fd; in osdep_xencall_open()
62 int osdep_xencall_close(xencall_handle *xcall) in osdep_xencall_close() argument
64 int fd = xcall->fd; in osdep_xencall_close()
70 int osdep_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall) in osdep_hypercall() argument
72 return ioctl(xcall->fd, IOCTL_PRIVCMD_HYPERCALL, hypercall); in osdep_hypercall()
75 void *osdep_alloc_pages(xencall_handle *xcall, size_t npages) in osdep_alloc_pages() argument
119 void osdep_free_pages(xencall_handle *xcall, void *ptr, size_t npages) in osdep_free_pages() argument
A Dminios.c30 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument
36 int osdep_xencall_close(xencall_handle *xcall) in osdep_xencall_close() argument
41 int osdep_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall) in osdep_hypercall() argument
63 void *osdep_alloc_pages(xencall_handle *xcall, size_t npages) in osdep_alloc_pages() argument
68 void osdep_free_pages(xencall_handle *xcall, void *ptr, size_t npages) in osdep_free_pages() argument
/xen-4.10.0-shim-comet/tools/libs/call/include/
A Dxencall.h74 int xencall_close(xencall_handle *xcall);
94 int xencall0(xencall_handle *xcall, unsigned int op);
95 int xencall1(xencall_handle *xcall, unsigned int op,
97 int xencall2(xencall_handle *xcall, unsigned int op,
99 int xencall3(xencall_handle *xcall, unsigned int op,
101 int xencall4(xencall_handle *xcall, unsigned int op,
104 int xencall5(xencall_handle *xcall, unsigned int op,
112 void *xencall_alloc_buffer_pages(xencall_handle *xcall, size_t nr_pages);
113 void xencall_free_buffer_pages(xencall_handle *xcall, void *p, size_t nr_pages);
115 void *xencall_alloc_buffer(xencall_handle *xcall, size_t size);
[all …]
/xen-4.10.0-shim-comet/tools/libxc/
A Dxc_altp2m.c40 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_get_domain_state()
64 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_domain_state()
88 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_vcpu_enable_notify()
111 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_create_view()
136 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_destroy_view()
159 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_switch_to_view()
184 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_mem_access()
209 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_change_gfn()
A Dxc_kexec.c29 ret = xencall2(xch->xcall, __HYPERVISOR_kexec_op, in xc_kexec_exec()
55 ret = xencall2(xch->xcall, __HYPERVISOR_kexec_op, in xc_kexec_get_range()
95 ret = xencall2(xch->xcall, __HYPERVISOR_kexec_op, in xc_kexec_load()
120 ret = xencall2(xch->xcall, __HYPERVISOR_kexec_op, in xc_kexec_unload()
144 ret = xencall2(xch->xcall, __HYPERVISOR_kexec_op, in xc_kexec_status()
A Dxc_hcall_buf.c32 void *p = xencall_alloc_buffer_pages(xch->xcall, nr_pages); in xc__hypercall_buffer_alloc_pages()
44 xencall_free_buffer_pages(xch->xcall, b->hbuf, nr_pages); in xc__hypercall_buffer_free_pages()
49 void *p = xencall_alloc_buffer(xch->xcall, size); in xc__hypercall_buffer_alloc()
61 xencall_free_buffer(xch->xcall, b->hbuf); in xc__hypercall_buffer_free()
A Dxc_private.h97 xencall_handle *xcall; member
228 return xencall2(xch->xcall, __HYPERVISOR_xen_version, in do_xen_version()
243 ret = xencall2(xch->xcall, __HYPERVISOR_physdev_op, in do_physdev_op()
270 ret = xencall1(xch->xcall, __HYPERVISOR_domctl, in do_domctl()
297 ret = xencall1(xch->xcall, __HYPERVISOR_sysctl, in do_sysctl()
326 ret = xencall1(xch->xcall, __HYPERVISOR_platform_op, in do_platform_op()
346 ret = xencall2(xch->xcall, __HYPERVISOR_multicall, in do_multicall_op()
A Dxc_private.c61 xch->xcall = xencall_open(xch->error_handler, in xc_interface_open()
63 if ( xch->xcall == NULL ) in xc_interface_open()
78 xencall_close(xch->xcall); in xc_interface_open()
91 rc = xencall_close(xch->xcall); in xc_interface_close()
247 ret = xencall4(xch->xcall, __HYPERVISOR_mmuext_op, in xc_mmuext_op()
272 rc = xencall4(xch->xcall, __HYPERVISOR_mmu_update, in flush_mmu_updates()
327 ret = xencall2(xch->xcall, __HYPERVISOR_memory_op, in do_memory_op()
A Dxc_evtchn.c36 ret = xencall2(xch->xcall, __HYPERVISOR_event_channel_op, in do_evtchn_op()
A Dxc_gnttab.c32 ret = xencall3(xch->xcall, __HYPERVISOR_grant_table_op, in xc_gnttab_op()
A Dxc_misc.c359 ret = xencall1(xch->xcall, __HYPERVISOR_mca, in xc_mca_op()
406 ret = xencall1(xch->xcall, __HYPERVISOR_mca, HYPERCALL_BUFFER_AS_ARG(mc)); in xc_mca_op_inject_v2()
A Dxc_flask.c50 ret = xencall1(xch->xcall, __HYPERVISOR_xsm_op, in xc_flask_op()
A Dxc_domain.c136 ret = xencall2(xch->xcall, __HYPERVISOR_sched_op, in xc_domain_shutdown()
664 ret = xencall2(xch->xcall, __HYPERVISOR_sched_op, in xc_watchdog()
1503 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, in xc_hvm_param_set()
1524 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, in xc_hvm_param_get()
/xen-4.10.0-shim-comet/tools/libs/devicemodel/
A Dcore.c59 dmod->xcall = xencall_open(dmod->logger, 0); in xendevicemodel_open()
60 if (!dmod->xcall) in xendevicemodel_open()
72 xencall_close(dmod->xcall); in xendevicemodel_open()
87 xencall_close(dmod->xcall); in xendevicemodel_close()
106 op_bufs = xencall_alloc_buffer(dmod->xcall, sizeof(xen_dm_op_buf_t) * in xendevicemodel_xcall()
112 xcall_bufs[i] = xencall_alloc_buffer(dmod->xcall, bufs[i].size); in xendevicemodel_xcall()
122 ret = xencall3(dmod->xcall, __HYPERVISOR_dm_op, in xendevicemodel_xcall()
133 xencall_free_buffer(dmod->xcall, xcall_bufs[i]); in xendevicemodel_xcall()
135 xencall_free_buffer(dmod->xcall, op_bufs); in xendevicemodel_xcall()
A Dprivate.h15 xencall_handle *xcall; member

Completed in 29 milliseconds