diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 17:20:57 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 17:20:57 +0000 |
commit | 115209d91bcd3734ddaaf58a4a1cdbb4c44cd4fa (patch) | |
tree | 2b6454a5f05e6cede6689265f3d28782412a8c3e /tools/libxc | |
parent | f272b206703b3e8c5f12683475976dd77e5ecbf7 (diff) | |
download | xen-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')
-rw-r--r-- | tools/libxc/xc_evtchn.c | 9 | ||||
-rw-r--r-- | tools/libxc/xenctrl.h | 3 |
2 files changed, 11 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)); +} diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 715764ac6e..37d12d5788 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -432,6 +432,9 @@ int xc_evtchn_alloc_unbound(int xc_handle, uint32_t dom, uint32_t remote_dom); +int xc_evtchn_reset(int xc_handle, + uint32_t dom); + int xc_physdev_pci_access_modify(int xc_handle, uint32_t domid, int bus, |