From 98395e7fb6a2feeb6ac9c0ce06a203c67bb3dc4b Mon Sep 17 00:00:00 2001
From: Julien Grall <julien.grall@linaro.org>
Date: Tue, 24 Jun 2014 17:43:57 +0100
Subject: [PATCH 33/48] xen/intr: unmask the event channel when we have added a
 new handler

---
 sys/xen/xen_intr.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/xen/xen_intr.c b/sys/xen/xen_intr.c
index 84e528a..927bd10 100644
--- a/sys/xen/xen_intr.c
+++ b/sys/xen/xen_intr.c
@@ -1519,6 +1519,11 @@ xen_intr_add_handler(device_t dev, driver_filter_t filter,
 		    error);
 	}
 
+	/* Unmask the event channel if the handler has been correctly added */
+	if (error == 0)
+		evtchn_unmask_port(isrc->xi_port);
+
+
 	return (error);
 }
 
-- 
2.1.0

