• Daniel De Graaf's avatar
    xen/event: Add reference counting to event channels · 420eb554
    Daniel De Graaf authored
    Event channels exposed to userspace by the evtchn module may be used by
    other modules in an asynchronous manner, which requires that reference
    counting be used to prevent the event channel from being closed before
    the signals are delivered.
    
    The reference count on new event channels defaults to -1 which indicates
    the event channel is not referenced outside the kernel; evtchn_get fails
    if called on such an event channel. The event channels made visible to
    userspace by evtchn have a normal reference count.
    Signed-off-by: default avatarDaniel De Graaf <dgdegra@tycho.nsa.gov>
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    420eb554
evtchn.c 13 KB