Lines Matching refs:xch
103 void *osdep_alloc_hypercall_buffer(xc_interface *xch, int npages);
104 void osdep_free_hypercall_buffer(xc_interface *xch, void *ptr, int npages);
106 void xc_report_error(xc_interface *xch, int code, const char *fmt, ...)
108 void xc_reportv(xc_interface *xch, xentoollog_logger *lg, xentoollog_level,
111 void xc_report(xc_interface *xch, xentoollog_logger *lg, xentoollog_level,
115 const char *xc_set_progress_prefix(xc_interface *xch, const char *doing);
116 void xc_report_progress_single(xc_interface *xch, const char *doing);
117 void xc_report_progress_step(xc_interface *xch,
123 xc_report(xch, xch->error_handler, XTL_INFO,0, _f , ## _a); \
127 xc_report(xch, xch->error_handler, XTL_DETAIL,0, _f , ## _a); \
131 xc_report(xch, xch->error_handler, XTL_DEBUG,0, _f , ## _a); \
136 xc_report_error(xch,XC_INTERNAL_ERROR,_m , ## _a ); \
140 xc_report_error(xch,XC_INTERNAL_ERROR,_m " (%d = %s)", \
141 ## _a , errno, xc_strerror(xch, errno)); \
213 int xc__hypercall_bounce_pre(xc_interface *xch, xc_hypercall_buffer_t *bounce);
215 void xc__hypercall_bounce_post(xc_interface *xch, xc_hypercall_buffer_t *bounce);
221 void xc__hypercall_buffer_cache_release(xc_interface *xch);
227 static inline int do_xen_version(xc_interface *xch, int cmd, xc_hypercall_buffer_t *dest) in do_xen_version() argument
230 return xencall2(xch->xcall, __HYPERVISOR_xen_version, in do_xen_version()
234 static inline int do_physdev_op(xc_interface *xch, int cmd, void *op, size_t len) in do_physdev_op() argument
239 if ( xc_hypercall_bounce_pre(xch, op) ) in do_physdev_op()
245 ret = xencall2(xch->xcall, __HYPERVISOR_physdev_op, in do_physdev_op()
254 xc_hypercall_bounce_post(xch, op); in do_physdev_op()
259 static inline int do_domctl_maybe_retry_efault(xc_interface *xch, in do_domctl_maybe_retry_efault() argument
270 if ( xc_hypercall_bounce_pre(xch, domctl) ) in do_domctl_maybe_retry_efault()
277 ret = xencall1(xch->xcall, __HYPERVISOR_domctl, in do_domctl_maybe_retry_efault()
288 xc_hypercall_bounce_post(xch, domctl); in do_domctl_maybe_retry_efault()
293 static inline int do_domctl(xc_interface *xch, struct xen_domctl *domctl) in do_domctl() argument
295 return do_domctl_maybe_retry_efault(xch, domctl, 0); in do_domctl()
298 static inline int do_domctl_retry_efault(xc_interface *xch, struct xen_domctl *domctl) in do_domctl_retry_efault() argument
300 unsigned int retries = xencall_buffers_never_fault(xch->xcall) ? 0 : 2; in do_domctl_retry_efault()
302 return do_domctl_maybe_retry_efault(xch, domctl, retries); in do_domctl_retry_efault()
305 static inline int do_sysctl(xc_interface *xch, struct xen_sysctl *sysctl) in do_sysctl() argument
312 if ( xc_hypercall_bounce_pre(xch, sysctl) ) in do_sysctl()
318 ret = xencall1(xch->xcall, __HYPERVISOR_sysctl, in do_sysctl()
327 xc_hypercall_bounce_post(xch, sysctl); in do_sysctl()
332 static inline int do_platform_op(xc_interface *xch, in do_platform_op() argument
341 if ( xc_hypercall_bounce_pre(xch, platform_op) ) in do_platform_op()
347 ret = xencall1(xch->xcall, __HYPERVISOR_platform_op, in do_platform_op()
356 xc_hypercall_bounce_post(xch, platform_op); in do_platform_op()
360 static inline int do_multicall_op(xc_interface *xch, in do_multicall_op() argument
367 ret = xencall2(xch->xcall, __HYPERVISOR_multicall, in do_multicall_op()
379 long do_memory_op(xc_interface *xch, int cmd, void *arg, size_t len);
381 void *xc_map_foreign_ranges(xc_interface *xch, uint32_t dom,
385 int xc_get_pfn_type_batch(xc_interface *xch, uint32_t dom,
392 void discard_file_cache(xc_interface *xch, int fd, int flush);
401 struct xc_mmu *xc_alloc_mmu_updates(xc_interface *xch, unsigned int subject);
402 int xc_add_mmu_update(xc_interface *xch, struct xc_mmu *mmu,
404 int xc_flush_mmu_updates(xc_interface *xch, struct xc_mmu *mmu);
416 #define DOMPRINTF(fmt, args...) xc_dom_printf(dom->xch, fmt, ## args)
417 #define DOMPRINTF_CALLED(xch) xc_dom_printf((xch), "%s: called", __FUNCTION__) argument
422 int xc_vm_event_control(xc_interface *xch, uint32_t domain_id, unsigned int op,
428 void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
431 int do_dm_op(xc_interface *xch, uint32_t domid, unsigned int nr_bufs, ...);