[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200902144706.331e1032@jacob-builder>
Date: Wed, 2 Sep 2020 14:47:06 -0700
From: Jacob Pan <jacob.jun.pan@...ux.intel.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Jean-Philippe Brucker <jean-philippe@...aro.org>,
Jacob Pan <jacob.pan.linux@...il.com>,
"Tian, Kevin" <kevin.tian@...el.com>,
Raj Ashok <ashok.raj@...el.com>,
Jean-Philippe Brucker <jean-philippe@...aro.com>,
LKML <linux-kernel@...r.kernel.org>,
iommu@...ts.linux-foundation.org, Wu Hao <hao.wu@...el.com>,
David Woodhouse <dwmw2@...radead.org>,
jacob.jun.pan@...ux.intel.com
Subject: Re: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs
On Mon, 24 Aug 2020 11:34:29 -0700
Randy Dunlap <rdunlap@...radead.org> wrote:
> On 8/24/20 11:28 AM, Jean-Philippe Brucker wrote:
> >> +/**
> >> + * struct ioasid_set - Meta data about ioasid_set
> >> + * @type: Token types and other features
> > nit: doesn't follow struct order
> >
> >> + * @token: Unique to identify an IOASID set
> >> + * @xa: XArray to store ioasid_set private IDs, can be used for
> >> + * guest-host IOASID mapping, or just a private IOASID namespace.
> >> + * @quota: Max number of IOASIDs can be allocated within the set
> >> + * @nr_ioasids Number of IOASIDs currently allocated in the set
>
> * @nr_ioasids: Number of IOASIDs currently allocated in the set
>
got it. thanks!
> >> + * @sid: ID of the set
> >> + * @ref: Reference count of the users
> >> + */
> >> struct ioasid_set {
> >> - int dummy;
> >> + void *token;
> >> + struct xarray xa;
> >> + int type;
> >> + int quota;
> >> + int nr_ioasids;
> >> + int sid;
> >> + refcount_t ref;
> >> + struct rcu_head rcu;
> >> };
>
>
[Jacob Pan]
Powered by blists - more mailing lists