Re: [Intel-gfx] [PATCH v5 01/19] vfio: Allocate per device file structure

2023-02-27 Thread Jason Gunthorpe
On Mon, Feb 27, 2023 at 03:11:17AM -0800, Yi Liu wrote: > 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 >t

[Intel-gfx] [PATCH v5 01/19] vfio: Allocate per device file structure

2023-02-27 Thread Yi Liu
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