Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-05-17 Thread Jason Gunthorpe
On Wed, May 12, 2021 at 07:46:05AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Wednesday, May 12, 2021 1:37 AM > > > > On Tue, May 11, 2021 at 02:56:05PM +0800, Lu Baolu wrote: > > > > > > After my next series the mdev drivers will have direct access to > > > > the vfio

RE: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-05-12 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, May 12, 2021 1:37 AM > > On Tue, May 11, 2021 at 02:56:05PM +0800, Lu Baolu wrote: > > > > After my next series the mdev drivers will have direct access to > > > the vfio_device. So an alternative to using the struct device, or > > > adding

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-05-11 Thread Jason Gunthorpe
On Tue, May 11, 2021 at 02:56:05PM +0800, Lu Baolu wrote: > > After my next series the mdev drivers will have direct access to > > the vfio_device. So an alternative to using the struct device, or > > adding 'if mdev' is to add an API to the vfio_device world to > > inject what iom

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-05-10 Thread Lu Baolu
Hi Jason, On 4/7/21 4:00 AM, Jason Gunthorpe wrote: On Mon, Mar 25, 2019 at 09:30:34AM +0800, Lu Baolu wrote: A parent device might create different types of mediated devices. For example, a mediated device could be created by the parent device with full isolation and protection provided by the

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-04-07 Thread Jason Gunthorpe
On Wed, Apr 07, 2021 at 09:58:05AM +0800, Lu Baolu wrote: > I've ever tried to implement a bus iommu_ops for mdev devices. > > https://lore.kernel.org/lkml/20201030045809.957927-1-baolu...@linux.intel.com/ > > Any comments? You still have the symbol_get, so something continues to be wrong with

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-04-06 Thread Lu Baolu
Hi Jason, On 4/7/21 4:00 AM, Jason Gunthorpe wrote: On Mon, Mar 25, 2019 at 09:30:34AM +0800, Lu Baolu wrote: A parent device might create different types of mediated devices. For example, a mediated device could be created by the parent device with full isolation and protection provided by the

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2021-04-06 Thread Jason Gunthorpe
On Mon, Mar 25, 2019 at 09:30:34AM +0800, Lu Baolu wrote: > A parent device might create different types of mediated > devices. For example, a mediated device could be created > by the parent device with full isolation and protection > provided by the IOMMU. One usage case could be found on > Intel

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2019-03-27 Thread Alex Williamson
t; pet...@redhat.com; tiwei@intel.com; xin.z...@intel.com; > > iommu@lists.linux-foundation.org; k...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Jacob Pan ; Neo Jia > > > > Subject: Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in > > mdev_device > >

RE: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2019-03-27 Thread Parav Pandit
ker...@vger.kernel.org; Jacob Pan ; Neo Jia > > Subject: Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in > mdev_device > > > > On 3/25/2019 7:00 AM, Lu Baolu wrote: > > A parent device might create different types of mediated devices. For > > exampl

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2019-03-26 Thread Alex Williamson
On Mon, 25 Mar 2019 09:30:34 +0800 Lu Baolu wrote: > A parent device might create different types of mediated > devices. For example, a mediated device could be created > by the parent device with full isolation and protection > provided by the IOMMU. One usage case could be found on > Intel plat

Re: [PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2019-03-26 Thread Kirti Wankhede
On 3/25/2019 7:00 AM, Lu Baolu wrote: > A parent device might create different types of mediated > devices. For example, a mediated device could be created > by the parent device with full isolation and protection > provided by the IOMMU. One usage case could be found on > Intel platforms where

[PATCH v8 7/9] vfio/mdev: Add iommu related member in mdev_device

2019-03-24 Thread Lu Baolu
A parent device might create different types of mediated devices. For example, a mediated device could be created by the parent device with full isolation and protection provided by the IOMMU. One usage case could be found on Intel platforms where a mediated device is an assignable subset of a PCI,