aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_evtchn.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-19 17:20:57 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-19 17:20:57 +0000
commit115209d91bcd3734ddaaf58a4a1cdbb4c44cd4fa (patch)
tree2b6454a5f05e6cede6689265f3d28782412a8c3e /tools/libxc/xc_evtchn.c
parentf272b206703b3e8c5f12683475976dd77e5ecbf7 (diff)
downloadxen-115209d91bcd3734ddaaf58a4a1cdbb4c44cd4fa.tar.gz
xen-115209d91bcd3734ddaaf58a4a1cdbb4c44cd4fa.tar.bz2
xen-115209d91bcd3734ddaaf58a4a1cdbb4c44cd4fa.zip
[XEN] New event-channel reset operation.
Plumbed through libxenctrl to python. From: Andrei Petrov <andrei.petrov@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_evtchn.c')
-rw-r--r--tools/libxc/xc_evtchn.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c
index 8c795bce7a..c0f3b9b54c 100644
--- a/tools/libxc/xc_evtchn.c
+++ b/tools/libxc/xc_evtchn.c
@@ -37,7 +37,7 @@ int xc_evtchn_alloc_unbound(int xc_handle,
uint32_t dom,
uint32_t remote_dom)
{
- int rc;
+ int rc;
struct evtchn_alloc_unbound arg = {
.dom = (domid_t)dom,
.remote_dom = (domid_t)remote_dom
@@ -49,3 +49,10 @@ int xc_evtchn_alloc_unbound(int xc_handle,
return rc;
}
+
+int xc_evtchn_reset(int xc_handle,
+ uint32_t dom)
+{
+ struct evtchn_reset arg = { .dom = (domid_t)dom };
+ return do_evtchn_op(xc_handle, EVTCHNOP_reset, &arg, sizeof(arg));
+}