diff options
author | Yi Liu <[email protected]> | 2023-07-18 06:55:28 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-07-25 10:18:28 -0600 |
commit | 34aeeecdb3357f9ca5aea549525a17790d1c427d (patch) | |
tree | ae473844ad815720d5fee8db5f2d3361c5e17982 /drivers/fpga/xilinx-selectmap.c | |
parent | b1a59be8a2b64d00409dc7c9d523572ed32bcff8 (diff) |
vfio: Accept vfio device file in the KVM facing kAPI
This makes the vfio file kAPIs to accept 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 be set to vfio_device
after device file is bound to iommufd in the cdev path.
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Tested-by: Terrence Xu <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Tested-by: Matthew Rosato <[email protected]>
Tested-by: Yanting Jiang <[email protected]>
Tested-by: Shameer Kolothum <[email protected]>
Tested-by: Zhenzhong Duan <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions