@@ -115,17 +115,24 @@ be kept permanently reserved, so that it can act as a receptacle
for a copy of the boot memory content in addition to CPU state
and HPTE region, in the case a crash does occur.
+The first kernel, during fadump registration, prepares ELF core header
+that contains necessary information for the coredump of the 1st kernel
+which includes its physical memory layout. This ELF header and some more
+additional data is stored in the area called metadata region at the start
+of the reserved memory area.
+
o Memory Reservation during first kernel
Low memory Top of memory
0 boot memory size |
| | |<--Reserved dump area -->| |
V V | Permanent Reservation | V
- +-----------+----------/ /---+---+----+-----------+----+------+
- | | |CPU|HPTE| DUMP |ELF | |
- +-----------+----------/ /---+---+----+-----------+----+------+
- | ^
- | |
+ +-----------+----------/ /---+----+---+----+-----------+------+
+ | | |ELF |CPU|HPTE| DUMP | |
+ +-----------+---------/ /----+----+---+----+-----------+------+
+ | ^ ^
+ | | |
+ | metadata region |
\ /
-------------------------------------------
Boot memory content gets transferred to
@@ -137,14 +144,14 @@ and HPTE region, in the case a crash does occur.
Low memory Top of memory
0 boot memory size |
- | |<------------- Reserved dump area ----------- -->|
+ | |<------------- Reserved dump area -------------->|
V V V
- +-----------+----------/ /---+---+----+-----------+----+------+
- | | |CPU|HPTE| DUMP |ELF | |
- +-----------+----------/ /---+---+----+-----------+----+------+
- | |
- V V
- Used by second /proc/vmcore
+ +-----------+----------/ /---+----+----+---------------+------+
+ | | |ELF |CPU|HPTE| DUMP | |
+ +-----------+----------/ /---+----+----+---------------+------+
+ | |
+ V V
+ Used by second /proc/vmcore
kernel to boot
Fig. 2