vfio: iommu driver notify callback
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 29 Jan 2021 16:54:10 +0000 (08:54 -0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Feb 2021 20:20:07 +0000 (13:20 -0700)
commitec5e32940cc9d2a8a321cb7d756fb6ae45702d03
treee0314bcdcfd0ddb83fcf52a1c76b5f1b9bc94e73
parentc3cbab24db3860d68924d8a3f752a97d3cca1623
vfio: iommu driver notify callback

Define a vfio_iommu_driver_ops notify callback, for sending events to
the driver.  Drivers are not required to provide the callback, and
may ignore any events.  The handling of events is driver specific.

Define the CONTAINER_CLOSE event, called when the container's file
descriptor is closed.  This event signifies that no further state changes
will occur via container ioctl's.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h