Add xen_phys_start value in the crash info note
Subsystems (2)
PATCH 1/1 Add xen_phys_start value in the crash info note
Hi,
This patch makes the vmcore utilities (ex. crash, makedumpfile) be able to get the relocation address of the xen hypervisor from a vmcore. It is necessary for the utilities to find the data of the hypervisor structures.
Note that this patch does not raise any comptibility issue for the utilities (which I know) nor the other components of xen.
xen/arch/x86/crash.c +1 -0
@@ -102,6 +102,7 @@ void machine_crash_shutdown(void)hvm_cpu_down (); info =kexec_crash_save_info (); + info->xen_phys_start = xen_phys_start; info->dom0_pfn_to_mfn_frame_list_list =arch_get_pfn_to_mfn_frame_list_list (dom0); }
xen/include/xen/elfcore.h +1 -0
@@ -66,6 +66,7 @@ typedef struct {unsigned long xen_compile_time;unsigned long tainted;#if defined(__i386__) || defined(__x86_64__) +unsigned long xen_phys_start;unsigned long dom0_pfn_to_mfn_frame_list_list;#endif #if defined(__ia64__)
Signature · 1 line
Itsuro ODA <[email protected]>
Quoted 7 lines · Itsuro ODA
This patch makes the vmcore utilities (ex. crash, makedumpfile) be able to get the relocation address of the xen hypervisor from a vmcore. It is necessary for the utilities to find the data of the hypervisor structures.
Note that this patch does not raise any comptibility issue for the utilities (which I know) nor the other components of xen.
Since it both changes the size of the crash_info elf note, and adds the new field in the middle of the crash_info structure, how can it not affect compatibility?
-- Keir
Quoted 12 lines · Keir Fraser
Quoted 8 lines · Itsuro ODA
This patch makes the vmcore utilities (ex. crash, makedumpfile) be able to get the relocation address of the xen hypervisor from a vmcore. It is necessary for the utilities to find the data of the hypervisor structures.
Note that this patch does not raise any comptibility issue for the utilities (which I know) nor the other components of xen.
Quoted 6 lines
Since it both changes the size of the
crash_infoelf note, and adds the new field in the middle of thecrash_infostructure, how can it not affect compatibility?-- Keir
Itsuro did it that way on purpose. It maintains backwards compatibility by keeping the dom0_pfn_to_mfn_frame_list_list field as the last field in the PT_NOTE. crash doesn't know what a crash_xen_info_t structure is, but only its old and new size.
Dave