Skip to content

Commit c0ceb94

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/mm,ptdump: add real memory copy page markers
Add "Real Memory Copy Area Start" and "Real Memory Copy Area End" markers that fence the page used for real memory copying. Signed-off-by: Alexander Gordeev <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 2f0e8aa commit c0ceb94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/s390/mm/dump_pagetables.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <asm/abs_lowcore.h>
1212
#include <asm/nospec-branch.h>
1313
#include <asm/sections.h>
14+
#include <asm/maccess.h>
1415

1516
static unsigned long max_addr;
1617

@@ -44,6 +45,8 @@ enum address_markers_idx {
4445
MODULES_END_NR,
4546
ABS_LOWCORE_NR,
4647
ABS_LOWCORE_END_NR,
48+
MEMCPY_REAL_NR,
49+
MEMCPY_REAL_END_NR,
4750
};
4851

4952
static struct addr_marker address_markers[] = {
@@ -71,6 +74,8 @@ static struct addr_marker address_markers[] = {
7174
[MODULES_END_NR] = {0, "Modules Area End"},
7275
[ABS_LOWCORE_NR] = {0, "Lowcore Area Start"},
7376
[ABS_LOWCORE_END_NR] = {0, "Lowcore Area End"},
77+
[MEMCPY_REAL_NR] = {0, "Real Memory Copy Area Start"},
78+
[MEMCPY_REAL_END_NR] = {0, "Real Memory Copy Area End"},
7479
{ -1, NULL }
7580
};
7681

@@ -291,6 +296,8 @@ static int pt_dump_init(void)
291296
address_markers[MODULES_END_NR].start_address = MODULES_END;
292297
address_markers[ABS_LOWCORE_NR].start_address = __abs_lowcore;
293298
address_markers[ABS_LOWCORE_END_NR].start_address = __abs_lowcore + ABS_LOWCORE_MAP_SIZE;
299+
address_markers[MEMCPY_REAL_NR].start_address = __memcpy_real_area;
300+
address_markers[MEMCPY_REAL_END_NR].start_address = __memcpy_real_area + PAGE_SIZE;
294301
address_markers[VMEMMAP_NR].start_address = (unsigned long) vmemmap;
295302
address_markers[VMEMMAP_END_NR].start_address = (unsigned long)vmemmap + vmemmap_size;
296303
address_markers[VMALLOC_NR].start_address = VMALLOC_START;

0 commit comments

Comments
 (0)