xen/intr: add reference counts to event channels
authorroyger <royger@FreeBSD.org>
Mon, 31 Oct 2016 13:00:53 +0000 (13:00 +0000)
committerroyger <royger@FreeBSD.org>
Mon, 31 Oct 2016 13:00:53 +0000 (13:00 +0000)
commitaa260808def279e44013dbc19b379481d3644f61
tree86a828b16db62ab74d764c995d51a6eeb531b5e7
parentddb2945b77cd70901460eb748811d1525aa4b9ae
xen/intr: add reference counts to event channels

Add a reference count to xenisrc. This is required for implementation of
unmap-notifications in the grant table userspace device (gntdev). We need to
hold a reference to the event channel port, in case the user deallocates the
port before we send the notification.

Submitted by: jaggi
Reviewed by: royger
Differential review: https://reviews.freebsd.org/D7429
sys/x86/xen/xen_intr.c
sys/xen/xen_intr.h