Re: [Intel-gfx] [PATCH v2 03/14] vfio: Accept vfio device file in the driver facing kAPI

2023-02-06 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Monday, February 6, 2023 5:05 PM > > This makes the vfio file kAPIs to accepte vfio device files, also a > preparation for vfio device cdev support. > > For the kvm set with vfio device file, kvm pointer is stored in struct > vfio_device_file, and use kvm_ref_lock to

[Intel-gfx] [PATCH v2 03/14] vfio: Accept vfio device file in the driver facing kAPI

2023-02-06 Thread Yi Liu
This makes the vfio file kAPIs to accepte vfio device files, also a preparation for vfio device cdev support. For the kvm set with vfio device file, kvm pointer is stored in struct vfio_device_file, and use kvm_ref_lock to protect kvm set and kvm pointer usage within VFIO. This kvm pointer will