Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Alex Williamson
On Wed, 9 Nov 2016 00:17:53 +0530 Kirti Wankhede wrote: > On 11/8/2016 10:09 PM, Alex Williamson wrote: > > On Tue, 8 Nov 2016 19:25:35 +0530 > > Kirti Wankhede wrote: > > > ... > > - > +int (*pin_pages)(void

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Alex Williamson
On Wed, 9 Nov 2016 00:17:53 +0530 Kirti Wankhede wrote: > On 11/8/2016 10:09 PM, Alex Williamson wrote: > > On Tue, 8 Nov 2016 19:25:35 +0530 > > Kirti Wankhede wrote: > > > ... > > - > +int (*pin_pages)(void *iommu_data, unsigned long > *user_pfn, >

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 10:09 PM, Alex Williamson wrote: > On Tue, 8 Nov 2016 19:25:35 +0530 > Kirti Wankhede wrote: > ... - + int (*pin_pages)(void *iommu_data, unsigned long *user_pfn, + int npage, int prot, +

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 10:09 PM, Alex Williamson wrote: > On Tue, 8 Nov 2016 19:25:35 +0530 > Kirti Wankhede wrote: > ... - + int (*pin_pages)(void *iommu_data, unsigned long *user_pfn, + int npage, int prot, +

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Alex Williamson
On Tue, 8 Nov 2016 19:25:35 +0530 Kirti Wankhede wrote: > On 11/8/2016 1:06 AM, Alex Williamson wrote: > > On Sat, 5 Nov 2016 02:40:39 +0530 > > Kirti Wankhede wrote: > > > ... > >> +int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, >

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Alex Williamson
On Tue, 8 Nov 2016 19:25:35 +0530 Kirti Wankhede wrote: > On 11/8/2016 1:06 AM, Alex Williamson wrote: > > On Sat, 5 Nov 2016 02:40:39 +0530 > > Kirti Wankhede wrote: > > > ... > >> +int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, > >> + int npage, int prot,

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 1:06 AM, Alex Williamson wrote: > On Sat, 5 Nov 2016 02:40:39 +0530 > Kirti Wankhede wrote: > ... >> +int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, >> + int npage, int prot, unsigned long *phys_pfn) >> +{ >> +struct

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-08 Thread Kirti Wankhede
On 11/8/2016 1:06 AM, Alex Williamson wrote: > On Sat, 5 Nov 2016 02:40:39 +0530 > Kirti Wankhede wrote: > ... >> +int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, >> + int npage, int prot, unsigned long *phys_pfn) >> +{ >> +struct vfio_container *container; >>

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-07 Thread Alex Williamson
On Sat, 5 Nov 2016 02:40:39 +0530 Kirti Wankhede wrote: > Added two new callback functions to struct vfio_iommu_driver_ops. Backend > IOMMU module that supports pining and unpinning pages for mdev devices > should provide these functions. > Added APIs for pining and

Re: [PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-07 Thread Alex Williamson
On Sat, 5 Nov 2016 02:40:39 +0530 Kirti Wankhede wrote: > Added two new callback functions to struct vfio_iommu_driver_ops. Backend > IOMMU module that supports pining and unpinning pages for mdev devices > should provide these functions. > Added APIs for pining and unpining pages to VFIO

[PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-04 Thread Kirti Wankhede
Added two new callback functions to struct vfio_iommu_driver_ops. Backend IOMMU module that supports pining and unpinning pages for mdev devices should provide these functions. Added APIs for pining and unpining pages to VFIO module. These calls back into backend iommu module to actually pin and

[PATCH v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-04 Thread Kirti Wankhede
Added two new callback functions to struct vfio_iommu_driver_ops. Backend IOMMU module that supports pining and unpinning pages for mdev devices should provide these functions. Added APIs for pining and unpining pages to VFIO module. These calls back into backend iommu module to actually pin and