zdump: Drop support of obsolete dumps and dumpers

Drop support of obsolete dump and dump-tool versions (single-volume DASD,
FBA and Tape) in order to simplify zgetdump logic:
- CCW dumpers written in assembler instructions as well as stage2 dumpers
  of size less than 0x3000 (STAGE2_DUMPER_SIZE_V1 or STAGE2_DUMPER_SIZE_V2)
  haven't been used for years. Remove its traces completely as a cleanup.
  Keep the last version (version 5) of non-extended DASD dumper as well as
  newer extended DASD dumpers.
- Rename STAGE2_DUMPER_SIZE_V3 and STAGE2_DUMPER_SIZE_ZLIB constants.
- Drop support of non-extended s390 dumps of version < 5. Dump files
  of s390 format version 5 can be still produced by zgetdump (dfo_s390).
- Drop excessive dump version checking in df_s390_cpu_info_add() and
  df_s390_hdr_add() considering that obsolete s390 dumps of version lower
  than 5 no longer supported.
- Use cpu_cnt field in s390 dump header instead of the s390 dump version to
  indicate no cpu info available (DFI_CPU_CONTENT_NONE) for dfo_s390.
- Make df_s390_dumper_read() return error code upon unknown dumper
  version/magic detection.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Mikhail Zaslonko
2024-10-09 18:13:27 +02:00
committed by Jan Höppner
parent 9efd1df31d
commit 2c5d4073a7
9 changed files with 77 additions and 109 deletions
+3 -4
View File
@@ -234,10 +234,7 @@ static void df_s390_dump_init(void)
dh->hdr_size = DF_S390_HDR_SIZE;
dh->page_size = PAGE_SIZE;
dh->dump_level = 4;
if (dfi_cpu_content() == DFI_CPU_CONTENT_NONE)
dh->version = 4;
else
dh->version = 5;
dh->version = 5;
dh->mem_start = 0;
dh->mem_end = dfi_mem_end();
dh->mem_size = dh->mem_end + 1;
@@ -246,6 +243,8 @@ static void df_s390_dump_init(void)
if (dfi_attr_build_arch())
dh->build_arch = df_s390_from_dfi_arch(*dfi_attr_build_arch());
dh->cpu_cnt = dfi_cpu_cnt();
if (dfi_cpu_content() == DFI_CPU_CONTENT_NONE)
dh->cpu_cnt = 0;
if (dfi_attr_real_cpu_cnt())
dh->real_cpu_cnt = *dfi_attr_real_cpu_cnt();
if (dfi_attr_cpu_id())