lkml.org 
[lkml]   [2019]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 17/19] iommu: Add max num of cache and granu types
    Date
    To convert to/from cache types and granularities between generic and
    VT-d specific counterparts, a 2D arrary is used. Introduce the limits
    to help define the converstion array size.

    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    ---
    include/uapi/linux/iommu.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h
    index 5c95905..2d8fac8 100644
    --- a/include/uapi/linux/iommu.h
    +++ b/include/uapi/linux/iommu.h
    @@ -197,6 +197,7 @@ struct iommu_inv_addr_info {
    __u64 granule_size;
    __u64 nb_granules;
    };
    +#define NR_IOMMU_CACHE_INVAL_GRANU (3)

    /**
    * First level/stage invalidation information
    @@ -235,6 +236,7 @@ struct iommu_cache_invalidate_info {
    struct iommu_inv_addr_info addr_info;
    };
    };
    +#define NR_IOMMU_CACHE_TYPE (3)
    /**
    * struct gpasid_bind_data - Information about device and guest PASID binding
    * @gcr3: Guest CR3 value from guest mm
    --
    2.7.4
    \
     
     \ /
      Last update: 2019-04-24 01:29    [W:4.108 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site