Skip to content

kexec: Avoid overwriting the current pgd (V2)

Magnus Damm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kexec: Avoid overwriting the current pgd (V2, stubs)include/asm-i386/kexec.h include/asm-powerpc/kexec.h include/asm-s390/kexec.h +3 more+12 -06 replies
2/3kexec: Avoid overwriting the current pgd (V2, i386)arch/i386/kernel/machine_kexec.c arch/i386/kernel/relocate_kernel.S include/asm-i386/kexec.h+192 -1424 replies
3/3kexec: Avoid overwriting the current pgd (V2, x86_64)arch/x86_64/kernel/machine_kexec.c arch/x86_64/kernel/relocate_kernel.S include/asm-x86_64/kexec.h+189 -10315 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/03] kexec: Avoid overwriting the current pgd (V2)

kexec: Avoid overwriting the current pgd (V2)

This patch updates the kexec code for i386 and x86_64 to avoid overwriting the current pgd. For most people is overwriting the current pgd is not a big problem. When kexec:ing into a new kernel that reinitializes and makes use of all memory we don't care about saving state.

But overwriting the current pgd is not a good solution in the case of kdump (CONFIG_CRASH_DUMP) where we want to preserve as much state as possible when a crash occurs. This patch solves the overwriting issue.

20060524: V2

- Broke out architecture-specific data structures into asm/kexec.h
- Fixed a i386/PAE page table problem only triggering on real hardware.
- Moved segment handling code into the assembly routines.

20060501: V1

- First release