[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 12/16] Save/Restore Support: Add support for suspend/restore events.
Signed-off-by: Bruno Alvisio <bruno.alvisio@xxxxxxxxx> --- events.c | 5 +++++ include/events.h | 1 + kernel.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/events.c b/events.c index e8ef8aa..342aead 100644 --- a/events.c +++ b/events.c @@ -183,6 +183,11 @@ void fini_events(void) arch_fini_events(); } +void suspend_events(void) +{ + unbind_all_ports(); +} + void default_handler(evtchn_port_t port, struct pt_regs *regs, void *ignore) { printk("[Port %d] - event received\n", port); diff --git a/include/events.h b/include/events.h index 89b5997..705ad93 100644 --- a/include/events.h +++ b/include/events.h @@ -55,5 +55,6 @@ static inline int notify_remote_via_evtchn(evtchn_port_t port) } void fini_events(void); +void suspend_events(void); #endif /* _EVENTS_H_ */ diff --git a/kernel.c b/kernel.c index fd1c4c5..c6ff9f3 100644 --- a/kernel.c +++ b/kernel.c @@ -124,6 +124,8 @@ void pre_suspend(void) suspend_time(); suspend_console(); + + suspend_events(); } void post_suspend(int canceled) -- 2.3.2 (Apple Git-55) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |