Skip to content

kexec-tools, x86: E820 memmap pass for kdump

WANG Chao kexec 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest9 patches 5 repliesIn review
  2. v69 patches 24 repliesSuperseded
  3. v5 posting 3/310 patches 8 repliesApplied
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v5 posting 2/30 of 10 patches0 repliesSuperseded
v5 posting 1/310 patches21 repliesSuperseded
v44 patches29 repliesSuperseded
v34 patches8 repliesSuperseded
v24 patches14 repliesSuperseded
v13 of 4 patches4 repliesSuperseded

v7->v6 from the cover letter

dyoung/Simon:
- more description for CRASH_MAX_MEMMAP_NR to be 1024

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86, cleanup: add extra arguments to add_memmap() and delete_memmap()kexec/arch/i386/crashdump-x86.c+13 -90 replies
2/9x86, cleanup: add_memmap() only do alignment check on RANGE_RAMkexec/arch/i386/crashdump-x86.c+2 -20 replies
3/9x86, cleanup: add other types of memory range for 2nd kernel boot to memmap_pkexec/arch/i386/crashdump-x86.c+4 -10 replies
4/9x86, cleanup: use dbgprint_mem_range for memory range debuggingkexec/arch/i386/crashdump-x86.c+3 -230 replies
5/9x86, cleanup: increase CRASH_MAX_MEMMAP_NR up to 1024kexec/arch/i386/crashdump-x86.h+1 -10 replies
6/9x86, cleanup: Store crash memory ranges kexec_infokexec/arch/i386/crashdump-x86.c kexec/kexec.h+8 -00 replies
7/9x86, cleanup: kexec memory range .end to be inclusivekexec/arch/i386/kexec-x86-common.c kexec/arch/i386/x86-linux-setup.c kexec/firmware_memmap.c+2 -40 replies
8/9x86: add --pass-memmap-cmdline optionkexec/arch/i386/include/arch/options.h kexec/arch/i386/kexec-x86.c kexec/arch/i386/kexec-x86.h +1 more+12 -00 replies
9/9x86: Pass memory range via E820 for kdumpkexec/arch/i386/crashdump-x86.c kexec/arch/i386/x86-linux-setup.c kexec/arch/i386/x86-linux-setup.h+103 -530 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchDave YoungLinn Crosetto
1/9A-b T-b
2/9A-b T-b
3/9A-b T-b
4/9A-b T-b
5/9A-b T-b
6/9A-b T-b
7/9A-b T-b
8/9A-b T-b
9/9A-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/9] kexec-tools, x86: E820 memmap pass for kdump

Hi, All

This patchset enables passing memory map via E820 map on x86 platform instead of memmap=exactmap. It's a better design and will solve the following problem so far:

- kernel cmdline is limited resource and large machines tend to have many memory ranges that may excceed kernel cmdline limit size.
- kASLR doesn't work with memmap=exactmap, because kASLR happens early than user defined memmap=exactmap takes effect.

Unfortunately, saved_max_pfn still got its user out there (calgry pci, it looks like the only one). So for backward compatibility, I'm introducing a new option --pass-memmap-cmdline to force kexec-tools to pass memmap=exactmap, the old way.

This patchset contains massive updates from the previous one. I take some suggestions from reviewers. I try to split the changes into smaller pieces and keep the whole change as minimal as I can so it wouldn't be too harsh to review the patch.

Any comment is appreciate!

v7->v6:
dyoung/Simon:
- more description for CRASH_MAX_MEMMAP_NR to be 1024

v6->v5:
dyoung:
- use nr_memmap instead of nr_memmap_p
- .end inclusive
Simon:
- more description on some patches

v5->v4:
Dave:
- separate add_setup_data() to another patch.
Vivek:
- adding comments for setup_data.
- store crash memory range info golobally in kexec_info.
me:
-remove dbgprint_mem_range defination, Simon has merged the patch.

v3->v4:
Linn: check return value of malloc (use xmalloc).
me: fix dbgprintf_mem_range.

v2->v3:
Linn:
- do not free sd (setup_data) buffer.
- reuse code in setup_e820 and setup_e820_ext.

v1->v2:
Vivek:
- Use function instead of macro for dbgprint_mem_range
- Do not pass reserved memory range for kdump. It could addressed later separately.

WANG Chao (9):
x86, cleanup: add extra arguments to add_memmap() and delete_memmap() x86, cleanup: add_memmap() only do alignment check on RANGE_RAM x86, cleanup: add other types of memory range for 2nd kernel boot to
memmap_p
x86, cleanup: use dbgprint_mem_range for memory range debugging x86, cleanup: increase CRASH_MAX_MEMMAP_NR up to 1024
x86, cleanup: Store crash memory ranges kexec_info
x86, cleanup: kexec memory range .end to be inclusive
x86: add --pass-memmap-cmdline option
x86: Pass memory range via E820 for kdump

 kexec/arch/i386/crashdump-x86.c        |  69 +++++++--------
 kexec/arch/i386/crashdump-x86.h        |   2 +-
 kexec/arch/i386/include/arch/options.h |   2 +
 kexec/arch/i386/kexec-x86-common.c     |   3 +-
 kexec/arch/i386/kexec-x86.c            |   4 +
 kexec/arch/i386/kexec-x86.h            |   1 +
 kexec/arch/i386/x86-linux-setup.c      | 149 ++++++++++++++++++++++-----------
 kexec/arch/i386/x86-linux-setup.h      |   1 +
 kexec/arch/x86_64/kexec-x86_64.c       |   5 ++
 kexec/firmware_memmap.c                |   1 -
 kexec/kexec.h                          |   2 +
 11 files changed, 147 insertions(+), 92 deletions(-)
Signature · 7 lines
1.9.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec