]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Enable asserting MSI eventfds not firing
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:24:57 +0000 (21:24 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:04 +0000 (12:14 -0600)
commit924947804f2b9e564efdc814420d21b239df2dd4
treec65cebe89fcdc1c7038c4451758618e8dcb79c4f
parent346cd58f1fb588f8ff193d76cf0bb455446ace03
vfio: selftests: Enable asserting MSI eventfds not firing

Make it possible to assert that a given MSI eventfd did _not_ fire by
adding a helper to mark an eventfd non-blocking. Demonstrate this in
vfio_pci_device_test by asserting the MSI eventfd did not fire before
vfio_pci_irq_trigger().

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-11-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
tools/testing/selftests/vfio/lib/include/vfio_util.h
tools/testing/selftests/vfio/vfio_pci_device_test.c