RFC x86/mm/cpa: Various fixes and improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | x86/mm/cpa: Fix cpa_flush_array() TLB invalidationarch/ | +16 | 0 replies | |
| 2/10 | x86/mm/cpa: Add ARRAY and PAGES_ARRAY selftestsarch/ | +24 | 0 replies | |
| 3/10 | x86/mm/cpa: Add __cpa_addr() helperarch/ | +19 | 0 replies | |
| 4/10 | x86/mm/cpa: Make cpa_data::vaddr invariantarch/ | +8 | 0 replies | |
| 5/10 | x86/mm/cpa: Cleanup...arch/ arch/ | +6 | 0 replies | |
| 6/10 | x86/mm/cpa: Optimize cpa_flush_array() TLB invalidationarch/ arch/ arch/ | +29 | 0 replies | |
| 7/10 | x86/mm/cpa: Make cpa_data::numpages invariantarch/ | +13 | 0 replies | |
| 8/10 | x86/mm/cpa: Fold cpa_flush_range() and cpa_flush_array()arch/ | +18 | 0 replies | |
| 9/10 | x86/mm/cpa: Better use clflushoptarch/ | +17 | 0 replies | |
| 10/10 | x86/mm/cpa: Rename @addrinarrayarch/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH 00/10] x86/mm/cpa: Various fixes and improvements
With exception of the very first patch, this whole series is probablt RFC at this point.
(and thanks to sending that earlier email saying that I was stumped by this crap,
I instantly spotted my problem)
Dave, I didn't address that tlbinv(0) point you made, mostly because I didn't have a good answer.
These patches get rid of around ~40 lines of pageattr.c while adding smarts and removing a few (IMO) warts. The total LoC improvement not quite as impressive because of the additional lines of selftest.
--- arch/x86/mm/mm_internal.h | 2 + arch/x86/mm/pageattr-test.c | 31 +++-- arch/x86/mm/pageattr.c | 267 +++++++++++++++++++------------------------- arch/x86/mm/tlb.c | 4 +- 4 files changed, 143 insertions(+), 161 deletions(-)