]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
xen/events: add a wrapper for event channel op hypercall
authorWei Liu <liuw@liuw.name>
Wed, 22 Apr 2015 15:51:19 +0000 (16:51 +0100)
committerWei Liu <liuw@liuw.name>
Thu, 7 May 2015 09:41:45 +0000 (10:41 +0100)
Signed-off-by: Wei Liu <liuw@liuw.name>
platform/xen/xen/events.c
platform/xen/xen/include/mini-os/events.h

index 8889d60c1785a9e93580b5e9bdf42c7cb10febdd..5bb0d5a6ca6f8b681c28e066ea8677278c662db1 100644 (file)
@@ -179,6 +179,12 @@ static struct pda
 } cpu0_pda;
 #endif
 
+/* Just a simple wrapper for event channel hypercall. */
+int minios_event_channel_op(int cmd, void *op)
+{
+    return HYPERVISOR_event_channel_op(cmd, op);
+}
+
 /*
  * Initially all events are without a handler and disabled
  */
index 53d7475fb4ed428ed69f029fe6b1601e06c540c9..ae4726198d0b8c5052a9632d40e752f70e3f5d70 100644 (file)
@@ -41,6 +41,8 @@ void unbind_all_ports(void);
 
 int minios_notify_remote_via_evtchn(evtchn_port_t port);
 
+int minios_event_channel_op(int cmd, void *op);
+
 void fini_events(void);
 
 #endif /* _MINIOS_EVENTS_H_ */