iommu: debug-pagealloc: Remove pfn_valid() usage
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 2 repliesApplied
- v12 patches 5 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/page_ext: Add page_ext_get_from_phys()include/ mm/ | +29 | 1 reply | |
| 2/2 | iommu: debug-pagealloc: Use page_ext_get_from_phys()drivers/ | +14 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Vlastimil Babka |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] iommu: debug-pagealloc: Remove pfn_valid() usage
This is a small fix for the new config IOMMU_DEBUG_PAGEALLOC based on the discussion:
https://lore.kernel.org/linux-iommu/CAFgf54pBAUm3ao-UJksiuGKtvv4wzRyFq_uKwLe0H1ettO4DLQ@mail.gmail.com/
Where it was concluded that pfn_valid() is not enough to validate physical addresses before access to page_ext.
The first patch introduces a new function in page_ext that takes a physical address as an argument, and the second patch uses it instead of calling pfn_valid() and phys_to_page()
Benchmarks with the new implementation can be found in:
https://lore.kernel.org/linux-iommu/[email protected]/
This series applies to iommu/core tree.
Changes on v2:
v1: https://lore.kernel.org/linux-iommu/[email protected]/
- Rename page_ext_phys() to page_ext_from_phys()
- Reword comment and commit messages.
Mostafa Saleh (2):
mm/page_ext: Add page_ext_get_from_phys()
iommu: debug-pagealloc: Use page_ext_get_from_phys()
drivers/iommu/iommu-debug-pagealloc.c | 31 ++++++++++++--------------- include/linux/page_ext.h | 6 ++++++ mm/page_ext.c | 23 ++++++++++++++++++++ 3 files changed, 43 insertions(+), 17 deletions(-)
Signature · 1 line
2.52.0.457.g6b5491de43-goog