This allows closing any ports opened by the arch-specific code.
ARM will use it for the debug port.
Signed-off-by: Thomas Leonard <talex5@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
#endif
}
+void arch_unbind_ports(void)
+{
+}
+
void arch_fini_events(void)
{
#if defined(__x86_64__)
void fini_events(void)
{
/* Dealloc all events */
+ arch_unbind_ports();
unbind_all_ports();
arch_fini_events();
}
/* prototypes */
void arch_init_events(void);
+
+/* Called by fini_events to close any ports opened by arch-specific code. */
+void arch_unbind_ports(void);
+
void arch_fini_events(void);
int do_event(evtchn_port_t port, struct pt_regs *regs);