diff options
| author | Mike Rapoport (Microsoft) <[email protected]> | 2025-09-21 05:44:57 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-10-07 20:48:55 +0000 |
| commit | a667300bd53f272a3055238bcefe108f88836270 (patch) | |
| tree | ef1dc250469661a3b03770ab9ae4fb2b1012472b /lib/mpi/mpi-mod.c | |
| parent | kho: replace kho_preserve_phys() with kho_preserve_pages() (diff) | |
| download | kernel-a667300bd53f272a3055238bcefe108f88836270.tar.gz kernel-a667300bd53f272a3055238bcefe108f88836270.zip | |
kho: add support for preserving vmalloc allocations
A vmalloc allocation is preserved using binary structure similar to global
KHO memory tracker. It's a linked list of pages where each page is an
array of physical address of pages in vmalloc area.
kho_preserve_vmalloc() hands out the physical address of the head page to
the caller. This address is used as the argument to kho_vmalloc_restore()
to restore the mapping in the vmalloc address space and populate it with
the preserved pages.
[[email protected]: free chunks using free_page() not kfree()]
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: coding-style cleanups]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport (Microsoft) <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Cc: Alexander Graf <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Changyuan Lyu <[email protected]>
Cc: Chris Li <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
