ia64/xen-unstable

changeset 17761:439a3e9459f2

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 <oda@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 30 16:04:20 2008 +0100 (2008-05-30)
parents c76e7f396c03
children 9c14ba60616d
files xen/arch/x86/crash.c xen/include/xen/elfcore.h
line diff
     1.1 --- a/xen/arch/x86/crash.c	Fri May 30 15:09:40 2008 +0100
     1.2 +++ b/xen/arch/x86/crash.c	Fri May 30 16:04:20 2008 +0100
     1.3 @@ -102,6 +102,7 @@ void machine_crash_shutdown(void)
     1.4      hvm_cpu_down();
     1.5  
     1.6      info = kexec_crash_save_info();
     1.7 +    info->xen_phys_start = xen_phys_start;
     1.8      info->dom0_pfn_to_mfn_frame_list_list =
     1.9          arch_get_pfn_to_mfn_frame_list_list(dom0);
    1.10  }
     2.1 --- a/xen/include/xen/elfcore.h	Fri May 30 15:09:40 2008 +0100
     2.2 +++ b/xen/include/xen/elfcore.h	Fri May 30 16:04:20 2008 +0100
     2.3 @@ -66,6 +66,7 @@ typedef struct {
     2.4      unsigned long xen_compile_time;
     2.5      unsigned long tainted;
     2.6  #if defined(__i386__) || defined(__x86_64__)
     2.7 +    unsigned long xen_phys_start;
     2.8      unsigned long dom0_pfn_to_mfn_frame_list_list;
     2.9  #endif
    2.10  #if defined(__ia64__)