kho: add support for deferred struct page init
Status from this message: Applied to next branch of liveupdate/linux.git tree, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest3 patches 10 repliesApplied
- v82 patches 12 repliesSuperseded
- v73 patches 30 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 2 patches | 2 replies | Superseded | |
| v5 | 2 patches | 0 replies | Superseded | |
| v4 | 2 patches | 2 replies | Superseded | |
| v3 | 1 patch | 3 replies | Superseded | |
| v2 | 1 patch | 3 replies | Superseded |
Changes in v9 from the cover letter
- moved init_pageblock_migratetype from memmap_init_reserved_range to __init_page_from_nid
- reduced number of ifdefs
- new commit to test this feature
Patches in v9 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | kho: fix deferred initialization of scratch areasinclude/ kernel/ mm/ +1 more | +58 | 3 replies | |
| 2/3 | kho: make preserved pages compatible with deferred struct page initkernel/ kernel/ | +26 | 0 replies | |
| 3/3 | selftests: kho: test with deferred struct page inittools/ | +4 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Pratyush Yadav (Google) | Pasha Tatashin | Mike Rapoport (Microsoft) |
|---|---|---|---|
| 1/3 | R-b | R-b | R-b |
| 2/3 | R-b | R-b | R-b |
| 3/3 | R-b | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v9 0/3] kho: add support for deferred struct page init
When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, struct page initialization is deferred to parallel kthreads that run later in the boot process.
Currently, KHO is incompatible with DEFERRED.
This series fixes that incompatibility.
---
v9:
- moved init_pageblock_migratetype from memmap_init_reserved_range to __init_page_from_nid
- reduced number of ifdefs
- new commit to test this feature
v8:
- moved overriding the migratetype from init_pageblock_migratetype to callsites
v7:
- reimplemented the initialization of kho scratch again v6:
- reimplemented the initialization of kho scratch
v5:
- rebased
v4:
- added a new commit to fix deferred init of kho scratch
- switched to ulong when refering to pfn
v3:
- changed commit msg
- don't invoke early_pfn_to_nid if CONFIG_DEFERRED_STRUCT_PAGE_INIT=n v2:
- updated a comment
I took Evangelos's test code:
https://git.infradead.org/?p=users/vpetrog/linux.git;a=shortlog;h=refs/heads/kho-deferred-struct-page-init
and then modified it to this monster test that does 2 allocations:
at core_initcall (early) and at module_init (late). Then kexec, then 2 more allocations at these points, then restore the original 2, then kexec, then restore the other 2. Basically I test preservation of early and late allocation both on cold and on warm boot.
Tested it both with and without DEFERRED.
https://github.com/mclapinski/linux/commits/deferred_test/
This patch probably doesn't apply onto anything currently. It's based on mm-new with
"memblock: move reserve_bootmem_range() to memblock.c and make it static" cherrypicked from rppt/memblock.
Evangelos Petrongonas (1):
kho: make preserved pages compatible with deferred struct page init
Michal Clapinski (2):
kho: fix deferred initialization of scratch areas
selftests: kho: test with deferred struct page init
include/linux/memblock.h | 21 +++++++++- kernel/liveupdate/Kconfig | 2 - kernel/liveupdate/kexec_handover.c | 52 ++++++++++++------------- mm/memblock.c | 56 +++++++++++---------------- mm/mm_init.c | 30 +++++++------- tools/testing/selftests/kho/vmtest.sh | 4 ++ 6 files changed, 88 insertions(+), 77 deletions(-)
Signature · 1 line
2.54.0.rc2.533.g4f5dca5207-goog