> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Tuesday, January 17, 2023 9:50 PM > > This is preparation for adding vfio device cdev support. vfio device > cdev requires: > 1) a per device file memory to store the kvm pointer set by KVM. It will > be propagated to vfio_device:kvm after the device cdev file is bound > to an iommufd > 2) a mechanism to block device access through device cdev fd before it > is bound to an iommufd > > To address above requirements, this adds a per device file structure > named vfio_device_file. For now, it's only a wrapper of struct vfio_device > pointer. Other fields will be added to this per file structure in future > commits. > > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>