lkml.org 
[lkml]   [2023]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2] iommu/vt-d: Avoid superfluous IOTLB tracking in lazy mode
Date
> From: Jacob Pan <jacob.jun.pan@linux.intel.com>
> Sent: Thursday, February 9, 2023 2:19 AM
>
> - iommu_iotlb_gather_add_page(domain, gather, iova, size);
> + /*
> + * We do not use page-selective IOTLB invalidation in flush queue,
> + * There is no need to track page and sync iotlb. Domain-selective or

"in flush queue, so there is ..."

> + * PASID-selective validation are used in the flush queue.

the last sentence can be removed. same meaning as the first one.

> + */
> + if (!iommu_iotlb_gather_queued(gather))
> + iommu_iotlb_gather_add_page(domain, gather, iova, size);
>

Reviewed-by: Kevin Tian <kevin.tian@intel.com>

\
 
 \ /
  Last update: 2023-03-27 00:15    [W:0.049 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site