v1
2026-08-07
kexec_handover 优化与错误回退 · v1
优化kexec_handover.c:删除内层循环无用的phys自增,并重构kho_restore_vmalloc错误时的页回滚逻辑。
原始补丁链接
子 Patch(2)
1/2
kho: remove useless phys increment in inner loop
The statement phys += contig_pages * PAGE_SIZE at the end of the inner for-loop in kho_restore_vmalloc() is redundant code. The variable ‘phys’ is local to each loop iteration (re-assigned from chunk-
2/2
kho: unwind restored pages on kho_restore_vmalloc error
In kho_restore_vmalloc(), when kho_restore_pages() succeeds, the recovered pages are handed to the buddy allocator (via adjust_managed_page_count()). If any later step (e.g. __get_vm_area_node() or vm