From 2363269c1c451a5a501323c59b054557224505a9 Mon Sep 17 00:00:00 2001 From: Mikhail Zaslonko Date: Wed, 1 Mar 2023 11:46:15 +0100 Subject: [PATCH] zipl/boot: Set the new version in the dumper and in the dump header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we are using the existing s390 extended dump format for compressed dumps as well, set the version of the s390_ext dumper with compression support and also dump header of the compressed dump to '2' (in order for zgetdump to distinguish). Signed-off-by: Mikhail Zaslonko Acked-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zipl/boot/eckd2dump_sv.c | 2 +- zipl/boot/stage2dump.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zipl/boot/eckd2dump_sv.c b/zipl/boot/eckd2dump_sv.c index 4b7d1f29..2ee132b0 100644 --- a/zipl/boot/eckd2dump_sv.c +++ b/zipl/boot/eckd2dump_sv.c @@ -21,7 +21,7 @@ /* * Magic number at start of dump record */ -const uint64_t __section(.stage2.head) magic = 0x5845434b44363401ULL; /* "XECKD64", version 1 */ +const uint64_t __section(.stage2.head) magic = 0x5845434b44363402ULL; /* "XECKD64", version 2 */ /* * Get device characteristics from zipl parameter block diff --git a/zipl/boot/stage2dump.c b/zipl/boot/stage2dump.c index 41691bce..9a40cf35 100644 --- a/zipl/boot/stage2dump.c +++ b/zipl/boot/stage2dump.c @@ -216,7 +216,7 @@ static void df_s390_dump_init(void) dh->hdr_size = DF_S390_HDR_SIZE; dh->page_size = PAGE_SIZE; dh->dump_level = 4; - dh->version = 1; + dh->version = 2; dh->mem_start = 0; dh->arch = DF_S390_ARCH_64; dh->build_arch = DF_S390_ARCH_64;