/xen/tools/libs/call/ |
A D | buffer.c | 53 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 D | core.c | 21 xencall_handle *xcall = CONTAINER_OF(ah, *xcall, tc_ah); in all_restrict_cb() local 36 xencall_handle *xcall = malloc(sizeof(*xcall)); in xencall_open() local 41 xcall->fd = -1; in xencall_open() 42 xcall->buf_fd = -1; in xencall_open() 59 if (!xcall->logger) { in xencall_open() 60 xcall->logger = xcall->logger_tofree = in xencall_open() 69 return xcall; in xencall_open() 75 free(xcall); in xencall_open() 83 if ( !xcall ) in xencall_close() 90 free(xcall); in xencall_close() [all …]
|
A D | linux.c | 37 int osdep_xencall_open(xencall_handle *xcall) in osdep_xencall_open() argument 58 xcall->fd = fd; in osdep_xencall_open() 69 xcall->buf_fd = fd; in osdep_xencall_open() 76 if ( xcall->buf_fd >= 0 ) in osdep_xencall_close() 77 close(xcall->buf_fd); in osdep_xencall_close() 78 if ( xcall->fd >= 0 ) in osdep_xencall_close() 79 close(xcall->fd); in osdep_xencall_close() 93 xcall->buf_fd, 0); in alloc_pages_bufdev() 153 if ( xcall->buf_fd >= 0 ) in osdep_alloc_pages() 165 if ( xcall->buf_fd < 0 ) in osdep_free_pages() [all …]
|
A D | solaris.c | 29 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() 89 int xencall_buffers_never_fault(xencall_handle *xcall) in xencall_buffers_never_fault() argument
|
A D | freebsd.c | 36 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 110 int xencall_buffers_never_fault(xencall_handle *xcall) in xencall_buffers_never_fault() argument
|
A D | netbsd.c | 29 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() 113 int xencall_buffers_never_fault(xencall_handle *xcall) in xencall_buffers_never_fault() argument
|
A D | private.h | 53 int osdep_xencall_open(xencall_handle *xcall); 54 int osdep_xencall_close(xencall_handle *xcall); 56 int osdep_hypercall(xencall_handle *xcall, privcmd_hypercall_t *hypercall); 58 void *osdep_alloc_pages(xencall_handle *xcall, size_t nr_pages); 59 void osdep_free_pages(xencall_handle *xcall, void *p, size_t nr_pages); 61 void buffer_release_cache(xencall_handle *xcall); 63 #define PERROR(_f...) xtl_log(xcall->logger, XTL_ERROR, errno, "xencall", _f)
|
A D | minios.c | 30 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 73 int xencall_buffers_never_fault(xencall_handle *xcall) in xencall_buffers_never_fault() argument
|
/xen/tools/libs/call/include/ |
A D | xencall.h | 74 int xencall_close(xencall_handle *xcall); 82 int xencall_fd(xencall_handle *xcall); 102 int xencall0(xencall_handle *xcall, unsigned int op); 103 int xencall1(xencall_handle *xcall, unsigned int op, 105 int xencall2(xencall_handle *xcall, unsigned int op, 107 int xencall3(xencall_handle *xcall, unsigned int op, 109 int xencall4(xencall_handle *xcall, unsigned int op, 112 int xencall5(xencall_handle *xcall, unsigned int op, 123 void *xencall_alloc_buffer(xencall_handle *xcall, size_t size); 124 void xencall_free_buffer(xencall_handle *xcall, void *p); [all …]
|
/xen/tools/libs/hypfs/ |
A D | core.c | 42 xencall_handle *xcall; member 65 fshdl->xcall = xencall_open(fshdl->logger, 0); in xenhypfs_open() 66 if (!fshdl->xcall) in xenhypfs_open() 70 if (xencall5(fshdl->xcall, __HYPERVISOR_hypfs_op, in xenhypfs_open() 77 xencall_close(fshdl->xcall); in xenhypfs_open() 88 xencall_close(fshdl->xcall); in xenhypfs_close() 274 xencall_free_buffer(fshdl->xcall, path_buf); in xenhypfs_read_raw() 275 xencall_free_buffer(fshdl->xcall, retbuf); in xenhypfs_read_raw() 444 buf = xencall_alloc_buffer(fshdl->xcall, sz); in xenhypfs_write() 530 xencall_free_buffer(fshdl->xcall, path_buf); in xenhypfs_write() [all …]
|
/xen/tools/libxc/ |
A D | xc_altp2m.c | 40 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() 87 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_vcpu_enable_notify() 109 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_vcpu_disable_notify() 132 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_create_view() 157 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_destroy_view() 180 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_switch_to_view() 203 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_get_suppress_ve() 230 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_suppress_ve() 257 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, HVMOP_altp2m, in xc_altp2m_set_supress_ve_multi() [all …]
|
A D | xc_kexec.c | 29 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 D | xc_private.h | 94 xencall_handle *xcall; member 230 return xencall2(xch->xcall, __HYPERVISOR_xen_version, in do_xen_version() 245 ret = xencall2(xch->xcall, __HYPERVISOR_physdev_op, in do_physdev_op() 277 ret = xencall1(xch->xcall, __HYPERVISOR_domctl, in do_domctl_maybe_retry_efault() 300 unsigned int retries = xencall_buffers_never_fault(xch->xcall) ? 0 : 2; in do_domctl_retry_efault() 318 ret = xencall1(xch->xcall, __HYPERVISOR_sysctl, in do_sysctl() 347 ret = xencall1(xch->xcall, __HYPERVISOR_platform_op, in do_platform_op() 367 ret = xencall2(xch->xcall, __HYPERVISOR_multicall, in do_multicall_op()
|
A D | xc_hcall_buf.c | 32 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 D | xc_private.c | 61 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() 109 return xch->xcall; in xc_interface_xcall_handle() 262 ret = xencall4(xch->xcall, __HYPERVISOR_mmuext_op, in xc_mmuext_op() 287 rc = xencall4(xch->xcall, __HYPERVISOR_mmu_update, in flush_mmu_updates() 342 ret = xencall2(xch->xcall, __HYPERVISOR_memory_op, in do_memory_op()
|
A D | xc_evtchn.c | 36 ret = xencall2(xch->xcall, __HYPERVISOR_event_channel_op, in do_evtchn_op()
|
A D | xc_gnttab.c | 32 ret = xencall3(xch->xcall, __HYPERVISOR_grant_table_op, in xc_gnttab_op()
|
A D | xc_misc.c | 361 ret = xencall1(xch->xcall, __HYPERVISOR_mca, in xc_mca_op() 408 ret = xencall1(xch->xcall, __HYPERVISOR_mca, HYPERCALL_BUFFER_AS_ARG(mc)); in xc_mca_op_inject_v2()
|
A D | xc_flask.c | 50 ret = xencall1(xch->xcall, __HYPERVISOR_xsm_op, in xc_flask_op()
|
A D | xc_domain.c | 114 ret = xencall2(xch->xcall, __HYPERVISOR_sched_op, in xc_domain_shutdown() 642 ret = xencall2(xch->xcall, __HYPERVISOR_sched_op, in xc_watchdog() 1456 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, in xc_hvm_param_set() 1474 rc = xencall2(handle->xcall, __HYPERVISOR_hvm_op, in xc_hvm_param_get()
|
/xen/tools/libs/devicemodel/ |
A D | core.c | 59 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() 88 xencall_close(dmod->xcall); in xendevicemodel_close() 107 op_bufs = xencall_alloc_buffer(dmod->xcall, sizeof(xen_dm_op_buf_t) * in xendevicemodel_xcall() 113 xcall_bufs[i] = xencall_alloc_buffer(dmod->xcall, bufs[i].size); in xendevicemodel_xcall() 123 ret = xencall3(dmod->xcall, __HYPERVISOR_dm_op, in xendevicemodel_xcall() 134 xencall_free_buffer(dmod->xcall, xcall_bufs[i]); in xendevicemodel_xcall() 136 xencall_free_buffer(dmod->xcall, op_bufs); in xendevicemodel_xcall()
|
A D | private.h | 15 xencall_handle *xcall; member
|