lkml.org 
[lkml]   [2021]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v12 2/5] iommu: Enhance IOMMU default DMA mode build options
Date
On 2021/6/11 20:20, John Garry wrote:
> +config IOMMU_DEFAULT_LAZY
> + bool "lazy"
> + help
> + Support lazy mode, where for every IOMMU DMA unmap operation, the
> + flush operation of IOTLB and the free operation of IOVA are deferred.
> + They are only guaranteed to be done before the related IOVA will be
> + reused.
> +
> + The isolation provided in this mode is not as secure as STRICT mode,
> + such that a vulnerable time window may be created between the DMA
> + unmap and the mapping finally being torn down in the IOMMU, where the
> + device can still access the system memory. However this mode may

" ... and the mappings cached in the IOMMU IOTLB or device TLB finally
being invalidated, where the device probably can still access the memory
which has already been unmapped by the device driver."

Best regards,
baolu

\
 
 \ /
  Last update: 2021-06-12 03:23    [W:0.190 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site