|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: your change "iommu: make map and unmap take a page count, similar to flush"
On 21/07/2021 16:58, Jan Beulich wrote: Paul, the description of this says "At the moment iommu_map() and iommu_unmap() take a page order rather than a count, whereas iommu_iotlb_flush() takes a page count rather than an order. This patch makes them consistent with each other, opting for a page count since CPU page orders are not necessarily the same as those of an IOMMU." I don't understand the latter sentence at all, now that I read it again. What may differ is the base page size, but that affects counts of pages and page order all the same. Hi Jan,What it's supposed to mean is that a CPU may e.g. have page orders 0 (4k) , 9 (2M), etc. but the IOMMU may not use the same orders. And by page count it means a count of (CPU) order 0 pages (which I assume all IOMMUs will support). Yes, if the order 0 page size was different between IOMMU and MMU then that would clearly be more tricky to deal with. Yes. The aim of the patch was really only to make the calls consistent. Changing all of them to use an order rather than a count would be ok too I think. Paul Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |