]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/intr: unmask the event channel when we have added a new handler
authorJulien Grall <julien.grall@linaro.org>
Tue, 24 Jun 2014 16:43:57 +0000 (17:43 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 5 Oct 2015 17:55:15 +0000 (18:55 +0100)
sys/xen/xen_intr.c

index e5c12af89ce761084481283634723629046518a9..acb8e5dcebf247b4b34bd9720bb44dce66910312 100644 (file)
@@ -1525,6 +1525,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);
 }