]> www.infradead.org Git - users/dwmw2/linux.git/commit
kvm/eventfd: Use priority waitqueue to catch events before userspace x86/apic
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 26 Oct 2020 17:43:35 +0000 (17:43 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 27 Oct 2020 14:23:03 +0000 (14:23 +0000)
commitd6d722c6009bc47c6cb77b2e477da5ae5c1e7609
treea30a3893f759e7d227f6174db20efe273b5aec28
parent6f13fdf52645caf5db558e7d31703e5472858ea3
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