[xen-unstable] Add xen_phys_start value in the crash info note

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] Add xen_phys_start value in the crash info note

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1212159860 -3600
# Node ID 439a3e9459f22394088dc0187d2ccad394e14667
# Parent  c76e7f396c03cb65249487cf57fe30ed883e4b21
Add xen_phys_start value in the crash info note

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 <[hidden email]>
---
 xen/arch/x86/crash.c      |    1 +
 xen/include/xen/elfcore.h |    1 +
 2 files changed, 2 insertions(+)

diff -r c76e7f396c03 -r 439a3e9459f2 xen/arch/x86/crash.c
--- a/xen/arch/x86/crash.c Fri May 30 15:09:40 2008 +0100
+++ b/xen/arch/x86/crash.c Fri May 30 16:04:20 2008 +0100
@@ -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);
 }
diff -r c76e7f396c03 -r 439a3e9459f2 xen/include/xen/elfcore.h
--- a/xen/include/xen/elfcore.h Fri May 30 15:09:40 2008 +0100
+++ b/xen/include/xen/elfcore.h Fri May 30 16:04:20 2008 +0100
@@ -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__)

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog