Skip to content
Commit 3be3a074 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Don't use device_lock around AER interrupt setup



device_lock is much too prone to lockups.  For instance if we have a
pending .remove then device_lock is already held.  If userspace
attempts to modify AER signaling after that point, a deadlock occurs.
eventfd setup/teardown is already protected in vfio with the igate
mutex.  AER is not a high performance interrupt, so we can also use
the same mutex to protect signaling versus setup races.

Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent d1099901
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment