From f23c2076227a7fb8e022e148b34c71999a208a77 Mon Sep 17 00:00:00 2001 From: Mikhail Zaslonko Date: Mon, 21 Oct 2024 22:09:40 +0200 Subject: [PATCH] zdump/df_vmdump: Fix the layout of vmd_asibk_64_new structure The struct vmd_asibk_64_new representing Address Space Information Block (ASZIBK) does not match the control block format form CP reference: https://www.vm.ibm.com/pubs/cp730/ASIBK.HTML Adjust the layout of vmd_asibk_64_new structure to be in sync with CP control block format. Introduce vmd_otble structure used for range table entries, reflecting the related CP control block: https://www.vm.ibm.com/pubs/cp730/OLTBLE.HTML Signed-off-by: Mikhail Zaslonko Reviewed-by: Thomas Richter Acked-by: Alexander Egorenkov Signed-off-by: Steffen Eiden --- zdump/df_vmdump.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/zdump/df_vmdump.h b/zdump/df_vmdump.h index efcc4df6..6b158fc7 100644 --- a/zdump/df_vmdump.h +++ b/zdump/df_vmdump.h @@ -105,21 +105,26 @@ struct vmd_albk { u8 id[sizeof(ALBK_MAGIC)]; } __packed; +struct vmd_oltble { + u64 start_addr; + u64 end_addr; +} __packed; + struct vmd_asibk_64_new { u8 id[8]; u8 as_token[8]; u8 spaceid[33]; u8 reserved1[2]; u8 asibk_format; - u8 filler1[12]; + u8 reserved2[12]; u64 storage_size_with_dcss; u64 storage_size_def_store; - u8 filler2[136]; - u64 online_storage_table[8]; /* For "def store config" */ - u64 fence1; - u64 requested_range_table[8]; - u64 fence2; - u32 record_number_of_first_bit_map; + u8 reserved3[136]; + u32 range_table_entry_count; + u32 dcss_table_entry_count; + struct vmd_oltble online_storage_table[8]; + struct vmd_oltble requested_range_table[64]; + struct vmd_oltble dcss_range_table[32]; } __packed; struct vmd_fir_64 {