• David Woodhouse's avatar
    kvm/eventfd: Use priority waitqueue to catch events before userspace · e8dbf195
    David Woodhouse authored
    As far as I can tell, when we use posted interrupts we silently cut off
    the events from userspace, if it's listening on the same eventfd that
    feeds the irqfd.
    
    I like that behaviour. Let's do it all the time, even without posted
    interrupts. It makes it much easier to handle IRQ remapping invalidation
    without having to constantly add/remove the fd from the userspace poll
    set. We can just leave userspace polling on it, and the bypass will...
    well... bypass it.
    Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
    Message-Id: <20201026175325.585623-2-dwmw2@infradead.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    e8dbf195
eventfd.c 22.3 KB