Add xen_phys_start value in the crash info note
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 30 May 2008 15:04:20 +0000 (16:04 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 30 May 2008 15:04:20 +0000 (16:04 +0100)
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.

Signed-off-by: Itsuro Oda <oda@valinux.co.jp>
xen/arch/x86/crash.c
xen/include/xen/elfcore.h

index 831dc7e04dbad2da713f60a1db51ca62808f9e4c..d38f969d0249b3cbacc1761ef785b476793aa4a4 100644 (file)
@@ -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);
 }
index 175ee628fea4ce790d754c7aaa51f8ea9fbf5b16..d0fd4266e8958ad56fbf5c376be5c6a2053be33e 100644 (file)
@@ -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__)