lkml.org 
[lkml]   [2020]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs
    From
    Date
    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

    >> + * @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;
    >> };


    --
    ~Randy

    \
     
     \ /
      Last update: 2020-08-24 20:35    [W:3.681 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site