]> www.infradead.org Git - users/dwmw2/linux.git/commit
kvm/eventfd: Use priority waitqueue to catch events before userspace irqfd-wait
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 26 Oct 2020 17:43:35 +0000 (17:43 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 28 Oct 2020 15:33:13 +0000 (15:33 +0000)
commit9624fd9ef1906fc182e82166170a63e313574777
treee40c27aa55f9b9ce2afe831b4e23a5651e6e50ca
parent32e69777d918fe4e95aac1b15f610357941c8fbe
kvm/eventfd: Use priority waitqueue to catch events before userspace

When posted interrupts are available, the IRTE is modified to deliver
interrupts direclty to the vCPU and nothing ever reaches 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