kvm/eventfd: Drain events from eventfd in irqfd_wakeup()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 27 Oct 2020 13:55:23 +0000 (13:55 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Nov 2020 14:49:11 +0000 (09:49 -0500)
commitb59e00dd8cda75fc8303c9f6847ac720b10664e3
tree50e3d41ce27544337acfe76e03568b8f1d2a0561
parentb1b397aeef8177f4f7bd91a0d5fa708f4752a499
kvm/eventfd: Drain events from eventfd in irqfd_wakeup()

Don't allow the events to accumulate in the eventfd counter, drain them
as they are handled.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Message-Id: <20201027135523.646811-4-dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/eventfd.c