Thread (38 messages) 38 messages, 8 authors, 2025-06-06

Re: [PATCH v2 13/15] iommu/amd: Use the generic iommu page table

From: ALOK TIWARI <hidden>
Date: 2025-05-05 19:09:44
Also in: linux-iommu, linux-kselftest, linux-patches, llvm


On 05-05-2025 19:48, Jason Gunthorpe wrote:
+	/*
+	 * AMD's IOMMU can flush as many pages as necessary in a single flush.
+	 * Unless we run in a virtual machine, which can be inferred according
+	 * to whether "non-present cache" is on, it is probably best to prefer
+	 * (potentially) too extensive TLB flushing (i.e., more misses) over
+	 * mutliple TLB flushes (i.e., more flushes). For virtual machines the
old typo mutliple -> multiple
+	 * hypervisor needs to synchronize the host IOMMU PTEs with those of
+	 * the guest, and the trade-off is different: unnecessary TLB flushes
+	 * should be avoided.
+	 */
Thanks,
Alok
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help