diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-06 17:02:38 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-06 17:02:38 +0100 |
commit | 07a233ac7c228b36a4c2a9abc09abbbeb04aab81 (patch) | |
tree | b632f65b28354172cdd71aed4caad902deb06e22 /tools/xenstore/fake_libxc.c | |
parent | c804adf4b64a5755c885b681c32591d2e67aa636 (diff) | |
download | xen-07a233ac7c228b36a4c2a9abc09abbbeb04aab81.tar.gz xen-07a233ac7c228b36a4c2a9abc09abbbeb04aab81.tar.bz2 xen-07a233ac7c228b36a4c2a9abc09abbbeb04aab81.zip |
User tools send evtchn notifications via /dev/xen/evtchn
rather than using hypercall directly.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/fake_libxc.c')
-rw-r--r-- | tools/xenstore/fake_libxc.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tools/xenstore/fake_libxc.c b/tools/xenstore/fake_libxc.c index a435d65bd0..5a02b2e597 100644 --- a/tools/xenstore/fake_libxc.c +++ b/tools/xenstore/fake_libxc.c @@ -36,12 +36,11 @@ static int xs_test_pid; static u16 port; /* The event channel maps to a signal, shared page to an mmapped file. */ -int xc_evtchn_send(int xc_handle __attribute__((unused)), int local_port) +void evtchn_notify(int local_port) { assert(local_port == port); if (kill(xs_test_pid, SIGUSR2) != 0) barf_perror("fake event channel failed"); - return 0; } void *xc_map_foreign_range(int xc_handle, u32 dom __attribute__((unused)), @@ -107,15 +106,6 @@ int xc_domain_getinfo(int xc_handle __attribute__((unused)), return 1; } -int xc_evtchn_bind_virq(int xc_handle __attribute__((unused)), - int virq __attribute__((unused)), - int *port) -{ - if (port) - *port = 0; - return 0; -} - static void send_to_fd(int signo __attribute__((unused))) { int saved_errno = errno; |