]> 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, 19 Oct 2015 14:50:58 +0000 (15:50 +0100)
sys/xen/xen_intr.c

index bcf4c84adad7bfed23582f9723739eb78f134d9a..6292dd3bd397a64f2fa7a4c03d71cb50c6fd7384 100644 (file)
@@ -1533,6 +1533,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);
 }