vfio/virqfd: Drain events from eventfd in virqfd_wakeup()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 27 Oct 2020 13:55:22 +0000 (13:55 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Nov 2020 14:49:10 +0000 (09:49 -0500)
commitb1b397aeef8177f4f7bd91a0d5fa708f4752a499
tree82a2c5c8365e5e057b58fd68cfc745d17409a233
parent28f1326710555bbe666f64452d08f2d7dd657cae
vfio/virqfd: Drain events from eventfd in virqfd_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-3-dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/virqfd.c