[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200918102630.6d592442@jacob-builder>
Date: Fri, 18 Sep 2020 10:26:30 -0700
From: Jacob Pan <jacob.jun.pan@...ux.intel.com>
To: Joerg Roedel <joro@...tes.org>
Cc: Jacob Pan <jacob.pan.linux@...il.com>,
iommu@...ts.linux-foundation.org,
LKML <linux-kernel@...r.kernel.org>,
Alex Williamson <alex.williamson@...hat.com>,
Lu Baolu <baolu.lu@...ux.intel.com>,
David Woodhouse <dwmw2@...radead.org>,
Jonathan Corbet <corbet@....net>,
Jean-Philippe Brucker <jean-philippe@...aro.com>,
Eric Auger <eric.auger@...hat.com>,
Yi Liu <yi.l.liu@...el.com>,
"Tian, Kevin" <kevin.tian@...el.com>,
Raj Ashok <ashok.raj@...el.com>, Wu Hao <hao.wu@...el.com>,
Yi Sun <yi.y.sun@...el.com>, jacob.jun.pan@...ux.intel.com
Subject: Re: [PATCH v9 0/7] IOMMU user API enhancement
Hi Joerg,
On Fri, 18 Sep 2020 12:02:36 +0200, Joerg Roedel <joro@...tes.org> wrote:
> Hi Jacob,
>
> On Fri, Sep 11, 2020 at 02:57:49PM -0700, Jacob Pan wrote:
> > IOMMU user API header was introduced to support nested DMA translation
> > and related fault handling. The current UAPI data structures consist of
> > three areas that cover the interactions between host kernel and guest:
> > - fault handling
> > - cache invalidation
> > - bind guest page tables, i.e. guest PASID
> >
> > Future extensions are likely to support more architectures and vIOMMU
> > features.
> >
> > In the previous discussion, using user-filled data size and feature
> > flags is made a preferred approach over a unified version number.
> > https://lkml.org/lkml/2020/1/29/45
> >
> > In addition to introduce argsz field to data structures, this patchset
> > is also trying to document the UAPI design, usage, and extension rules.
> > VT-d driver changes to utilize the new argsz field is included, VFIO
> > usage is to follow.
> >
> > This set is available at:
> > https://github.com/jacobpan/linux.git vsva_v5.9_uapi_v9
>
> This changes user visible structs in incompatible ways, are you sure
> those are not used yet anywhere?
>
These structs are not used yet in that IOMMU UAPI does not provide
direct user IOCTLs. For guest SVA of assigned devices, VFIO is used. Yi's
companion patches are here.
https://lore.kernel.org/linux-iommu/5dd95fbf-054c-3bbc-e76b-2d5636214ff2@redhat.com/T/#t
These user structs can also be used by other framework in the future, such
as vDPA.
> Please address Randy's comments on patch 1 and my comment about the
> build-time checking and repost with linux-api@...r.kernel.org on Cc.
>
Will do.
> Regards,
>
> Joerg
Thanks,
Jacob
Powered by blists - more mailing lists