Re: [PATCH] VFIO: remove dead notifier code
From: Anthony Krowiak
Date: Thu Apr 09 2026 - 08:00:27 EST
On 4/8/26 6:00 PM, Paolo Bonzini wrote:
On Wed, Apr 8, 2026 at 4:36 PM Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
On Wed, Apr 8, 2026 at 4:35 PM Anthony Krowiak <akrowiak@xxxxxxxxxxxxx> wrote:I was going to make the change, but then noticed that lowercase is
Heh, I had to pick one or the other (close_device previously used
open_device:Capitalization:
- The vfio_ap driver uses this callback to register a
- VFIO_GROUP_NOTIFY_SET_KVM notifier callback function for the matrix mdev
- devices. The open_device callback is invoked by userspace to connect the
- VFIO iommu group for the matrix mdev device to the MDEV bus. Access to the
- KVM structure used to configure the KVM guest is provided via this callback.
- The KVM structure, is used to configure the guest's access to the AP matrix
- defined via the vfio_ap mediated device's sysfs attribute files.
+ the open_device callback is invoked by userspace to connect the
s/the open_device callback/The open device callback/
Capitalization:
s/this callback/This callback/
lowercase) and chose the wrong one. :)
more common in the file:
create:
allocates the ap_matrix_mdev structure used by the vfio_ap driver to:
remove:
deallocates the vfio_ap mediated device's ap_matrix_mdev structure.
This will be allowed only if a running guest is not using the mdev.
ioctl:
this callback handles the VFIO_DEVICE_GET_INFO and VFIO_DEVICE_RESET
ioctls defined by the vfio framework.
What do you think?
It's not critical. If that's the case, leave it lower case
Paolo