]> www.infradead.org Git - users/dwmw2/linux.git/commit
kvm/eventfd: Use priority waitqueue to catch events before userspace irqfd
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 26 Oct 2020 17:43:35 +0000 (17:43 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 26 Oct 2020 17:43:35 +0000 (17:43 +0000)
commit0bc8d9d01db94184b49473519e4123c9d531e5b9
treeff07d19b8bec43f9f49c2afb6d91be6ddbf2a489
parent85d62899c89355896e0a660c8792087deec1e790
kvm/eventfd: Use priority waitqueue to catch events before userspace

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: David Woodhouse <dwmw@amazon.co.uk>
virt/kvm/eventfd.c