Home
last modified time | relevance | path

Searched refs:xce (Results 1 – 22 of 22) sorted by relevance

/xen/tools/libs/evtchn/
A Dcore.c22 xenevtchn_handle *xce = CONTAINER_OF(ah, *xce, tc_ah); in all_restrict_cb() local
24 if (xce->fd < 0) in all_restrict_cb()
33 xenevtchn_handle *xce = malloc(sizeof(*xce)); in xenevtchn_open() local
38 xce->fd = -1; in xenevtchn_open()
39 xce->logger = logger; in xenevtchn_open()
45 if (!xce->logger) { in xenevtchn_open()
46 xce->logger = xce->logger_tofree = in xenevtchn_open()
55 return xce; in xenevtchn_open()
61 free(xce); in xenevtchn_open()
69 if ( !xce ) in xenevtchn_close()
[all …]
A Dlinux.c42 xce->fd = fd; in osdep_evtchn_open()
48 if ( xce->fd == -1 ) in osdep_evtchn_close()
51 return close(xce->fd); in osdep_evtchn_close()
63 return xce->fd; in xenevtchn_fd()
68 int fd = xce->fd; in xenevtchn_notify()
79 int fd = xce->fd; in xenevtchn_bind_unbound_port()
91 int fd = xce->fd; in xenevtchn_bind_interdomain()
103 int fd = xce->fd; in xenevtchn_bind_virq()
113 int fd = xce->fd; in xenevtchn_unbind()
123 int fd = xce->fd; in xenevtchn_pending()
[all …]
A Dsolaris.c42 xce->fd = fd; in osdep_evtchn_open()
48 if ( xce->fd == -1 ) in osdep_evtchn_close()
51 return close(xce->fd); in osdep_evtchn_close()
62 return xce->fd; in xenevtchn_fd()
67 int fd = xce->fd; in xenevtchn_notify()
77 int fd = xce->fd; in xenevtchn_bind_unbound_port()
88 int fd = xce->fd; in xenevtchn_bind_interdomain()
99 int fd = xce->fd; in xenevtchn_bind_virq()
109 int fd = xce->fd; in xenevtchn_unbind()
119 int fd = xce->fd; in xenevtchn_pending()
[all …]
A Dnetbsd.c39 xce->fd = fd; in osdep_evtchn_open()
45 if ( xce->fd == -1 ) in osdep_evtchn_close()
48 return close(xce->fd); in osdep_evtchn_close()
59 return xce->fd; in xenevtchn_fd()
64 int fd = xce->fd; in xenevtchn_notify()
74 int fd = xce->fd; in xenevtchn_bind_unbound_port()
90 int fd = xce->fd; in xenevtchn_bind_interdomain()
106 int fd = xce->fd; in xenevtchn_unbind()
116 int fd = xce->fd; in xenevtchn_bind_virq()
131 int fd = xce->fd; in xenevtchn_pending()
[all …]
A Dfreebsd.c39 xce->fd = fd; in osdep_evtchn_open()
45 if ( xce->fd == -1 ) in osdep_evtchn_close()
48 return close(xce->fd); in osdep_evtchn_close()
59 return xce->fd; in xenevtchn_fd()
64 int fd = xce->fd; in xenevtchn_notify()
74 int ret, fd = xce->fd; in xenevtchn_bind_unbound_port()
86 int ret, fd = xce->fd; in xenevtchn_bind_interdomain()
98 int ret, fd = xce->fd; in xenevtchn_bind_virq()
109 int fd = xce->fd; in xenevtchn_unbind()
119 int fd = xce->fd; in xenevtchn_pending()
[all …]
A Dminios.c66 int osdep_evtchn_open(xenevtchn_handle *xce) in osdep_evtchn_open() argument
72 xce->fd = fd; in osdep_evtchn_open()
79 if ( xce->fd == -1 ) in osdep_evtchn_close()
82 return close(xce->fd); in osdep_evtchn_close()
100 int xenevtchn_fd(xenevtchn_handle *xce) in xenevtchn_fd() argument
102 return xce->fd; in xenevtchn_fd()
139 int fd = xce->fd; in xenevtchn_bind_unbound_port()
167 int fd = xce->fd; in xenevtchn_bind_interdomain()
194 int fd = xce->fd; in xenevtchn_unbind()
210 int fd = xce->fd; in xenevtchn_bind_virq()
[all …]
A Dprivate.h17 int osdep_evtchn_open(xenevtchn_handle *xce);
18 int osdep_evtchn_close(xenevtchn_handle *xce);
19 int osdep_evtchn_restrict(xenevtchn_handle *xce, domid_t domid);
/xen/tools/libxc/
A Dxc_evtchn_compat.c17 int xc_evtchn_close(xc_evtchn *xce) in xc_evtchn_close() argument
19 return xenevtchn_close(xce); in xc_evtchn_close()
22 int xc_evtchn_fd(xc_evtchn *xce) in xc_evtchn_fd() argument
24 return xenevtchn_fd(xce); in xc_evtchn_fd()
29 return xenevtchn_notify(xce, port); in xc_evtchn_notify()
35 return xenevtchn_bind_unbound_port(xce, domid); in xc_evtchn_bind_unbound_port()
48 return xenevtchn_bind_virq(xce, virq); in xc_evtchn_bind_virq()
53 return xenevtchn_unbind(xce, port); in xc_evtchn_unbind()
57 xc_evtchn_pending(xc_evtchn *xce) in xc_evtchn_pending() argument
59 return xenevtchn_pending(xce); in xc_evtchn_pending()
[all …]
A Dxc_suspend.c129 int xc_await_suspend(xc_interface *xch, xenevtchn_handle *xce, int suspend_evtchn) in xc_await_suspend() argument
134 rc = xenevtchn_pending(xce); in xc_await_suspend()
142 if (xenevtchn_unmask(xce, suspend_evtchn) < 0) in xc_await_suspend()
150 int xc_suspend_evtchn_release(xc_interface *xch, xenevtchn_handle *xce, in xc_suspend_evtchn_release() argument
154 xenevtchn_unbind(xce, suspend_evtchn); in xc_suspend_evtchn_release()
159 int xc_suspend_evtchn_init_sane(xc_interface *xch, xenevtchn_handle *xce, in xc_suspend_evtchn_init_sane() argument
169 suspend_evtchn = xenevtchn_bind_interdomain(xce, domid, port); in xc_suspend_evtchn_init_sane()
184 xc_suspend_evtchn_release(xch, xce, domid, suspend_evtchn, lockfd); in xc_suspend_evtchn_init_sane()
189 int xc_suspend_evtchn_init_exclusive(xc_interface *xch, xenevtchn_handle *xce, in xc_suspend_evtchn_init_exclusive() argument
194 suspend_evtchn = xc_suspend_evtchn_init_sane(xch, xce, domid, port, lockfd); in xc_suspend_evtchn_init_exclusive()
[all …]
/xen/tools/ocaml/libs/eventchn/
A Dxeneventchn_stubs.c43 xenevtchn_handle *xce; in stub_eventchn_init() local
46 xce = xenevtchn_open(NULL, 0); in stub_eventchn_init()
49 if (xce == NULL) in stub_eventchn_init()
52 result = (value)xce; in stub_eventchn_init()
58 CAMLparam1(xce); in stub_eventchn_fd()
62 fd = xenevtchn_fd(_H(xce)); in stub_eventchn_fd()
73 CAMLparam2(xce, port); in stub_eventchn_notify()
106 CAMLparam2(xce, virq_type); in stub_eventchn_bind_virq()
123 CAMLparam2(xce, port); in stub_eventchn_unbind()
138 CAMLparam1(xce); in stub_eventchn_pending()
[all …]
/xen/tools/libs/evtchn/include/
A Dxenevtchn.h75 int xenevtchn_close(xenevtchn_handle *xce);
92 int xenevtchn_fd(xenevtchn_handle *xce);
98 int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port);
105 xenevtchn_bind_unbound_port(xenevtchn_handle *xce, uint32_t domid);
112 xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint32_t domid,
120 xenevtchn_bind_virq(xenevtchn_handle *xce, unsigned int virq);
126 int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port_t port);
146 xenevtchn_pending(xenevtchn_handle *xce);
152 int xenevtchn_unmask(xenevtchn_handle *xce, evtchn_port_t port);
162 int xenevtchn_restrict(xenevtchn_handle *xce, domid_t domid);
/xen/tools/misc/
A Dxen-hptool.c117 suspend_evtchn = xc_suspend_evtchn_init_exclusive(xch, xce, domid, in suspend_guest()
126 rc = xenevtchn_notify(xce, suspend_evtchn); in suspend_guest()
132 if (xc_await_suspend(xch, xce, suspend_evtchn) < 0) in suspend_guest()
141 xc_suspend_evtchn_release(xch, xce, domid, in suspend_guest()
201 xenevtchn_handle *xce; in hp_mem_offline_func() local
202 xce = xenevtchn_open(NULL, 0); in hp_mem_offline_func()
204 if (xce == NULL) in hp_mem_offline_func()
212 if (suspend_guest(xch, xce, domid, in hp_mem_offline_func()
217 xenevtchn_close(xce); in hp_mem_offline_func()
239 xc_suspend_evtchn_release(xch, xce, domid, in hp_mem_offline_func()
[all …]
/xen/tools/libxc/include/
A Dxenctrl_compat.h58 int xc_evtchn_close(xc_evtchn *xce);
59 int xc_evtchn_fd(xc_evtchn *xce);
60 int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port);
62 xc_evtchn_bind_unbound_port(xc_evtchn *xce, uint32_t domid);
64 xc_evtchn_bind_interdomain(xc_evtchn *xce, uint32_t domid,
67 xc_evtchn_bind_virq(xc_evtchn *xce, unsigned int virq);
68 int xc_evtchn_unbind(xc_evtchn *xce, evtchn_port_t port);
70 xc_evtchn_pending(xc_evtchn *xce);
71 int xc_evtchn_unmask(xc_evtchn *xce, evtchn_port_t port);
A Dxenguest.h263 struct xenevtchn_handle *xce,
272 struct xenevtchn_handle *xce,
276 int xc_await_suspend(xc_interface *xch, struct xenevtchn_handle *xce,
287 struct xenevtchn_handle *xce,
/xen/tools/tests/depriv/
A Ddepriv-fd-checker.c225 static xenevtchn_handle *xce_recip, *xce; variable
231 xce = xenevtchn_open(logger, 0); in open_evtchn()
232 if (!xce) err(-1,"xenevtchn_open"); in open_evtchn()
241 test_unbound_port = xenevtchn_bind_unbound_port(xce, 0); in test_evtchn()
247 test_send_port = xenevtchn_bind_interdomain(xce, 0, recip_port); in test_evtchn()
279 if (recip_port > 0) xenevtchn_unbind(xce, recip_port); in test_evtchn()
280 if (test_unbound_port > 0) xenevtchn_unbind(xce, test_unbound_port); in test_evtchn()
281 if (test_send_port > 0) xenevtchn_unbind(xce, test_send_port); in test_evtchn()
284 return xenevtchn_fd(xce); in getfd_evtchn()
287 xenevtchn_close(xce); in close_evtchn()
/xen/tools/libxl/
A Dlibxl_event.c920 port = xenevtchn_pending(CTX->xce); in evtchn_fd_callback()
946 xenevtchn_handle *xce; in libxl__ctx_evtchn_init() local
949 if (CTX->xce) in libxl__ctx_evtchn_init()
952 xce = xenevtchn_open(CTX->lg, 0); in libxl__ctx_evtchn_init()
953 if (!xce) { in libxl__ctx_evtchn_init()
959 fd = xenevtchn_fd(xce); in libxl__ctx_evtchn_init()
965 CTX->xce = xce; in libxl__ctx_evtchn_init()
969 xenevtchn_close(xce); in libxl__ctx_evtchn_init()
975 if (CTX->xce && LIBXL_LIST_EMPTY(&CTX->evtchns_waiting)) in evtchn_check_fd_deregister()
991 xenevtchn_fd(CTX->xce), POLLIN); in libxl__ev_evtchn_wait()
[all …]
A Dlibxl.c60 ctx->xce = 0; in libxl_ctx_alloc()
175 if (ctx->xce) xenevtchn_close(ctx->xce); in libxl_ctx_free()
A Dlibxl_dom_suspend.c54 xc_suspend_evtchn_init_exclusive(CTX->xch, CTX->xce, in libxl__domain_suspend_init()
160 ret = xenevtchn_notify(CTX->xce, dsps->guest_evtchn.port); in domain_suspend_callback_common()
A Dlibxl_dom_save.c465 xc_suspend_evtchn_release(CTX->xch, CTX->xce, domid, in domain_save_done()
A Dlibxl_internal.h710 xenevtchn_handle *xce; /* waiting must be done only with libxl__ev_evtchn* */ member
/xen/tools/tests/xen-access/
A Dxen-access.c90 int xc_wait_for_event_or_timeout(xc_interface *xch, xenevtchn_handle *xce, unsigned long ms) in xc_wait_for_event_or_timeout() argument
92 struct pollfd fd = { .fd = xenevtchn_fd(xce), .events = POLLIN | POLLERR }; in xc_wait_for_event_or_timeout()
108 port = xenevtchn_pending(xce); in xc_wait_for_event_or_timeout()
115 rc = xenevtchn_unmask(xce, port); in xc_wait_for_event_or_timeout()
/xen/tools/xenpaging/
A Dxenpaging.c75 xenevtchn_handle *xce = paging->vm_event.xce_handle; in xenpaging_wait_for_event_or_timeout() local
84 fd[0].fd = xenevtchn_fd(xce); in xenpaging_wait_for_event_or_timeout()
148 port = xenevtchn_pending(xce); in xenpaging_wait_for_event_or_timeout()
156 rc = xenevtchn_unmask(xce, port); in xenpaging_wait_for_event_or_timeout()

Completed in 38 milliseconds