|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [patch 02/12] Kdump: Save dom0_mm_pgd_mfn in vmcore on
On Xen dom0_mm_pgd_mfn needs to be saved in the vmcore in
order to allow the crash utility to navigate the vmcore file.
Cc: Itsuro ODA <oda@xxxxxxxxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: xen-ia64-unstable-14854.hg/xen/include/xen/elfcore.h
===================================================================
--- xen-ia64-unstable-14854.hg.orig/xen/include/xen/elfcore.h 2007-04-24
13:22:55.000000000 +0900
+++ xen-ia64-unstable-14854.hg/xen/include/xen/elfcore.h 2007-04-24
13:23:03.000000000 +0900
@@ -65,9 +65,12 @@ typedef struct {
unsigned long xen_compile_date;
unsigned long xen_compile_time;
unsigned long tainted;
-#ifdef CONFIG_X86
+#if defined(__i386__) || defined(__x86_64__)
unsigned long dom0_pfn_to_mfn_frame_list_list;
#endif
+#if defined(__ia64__)
+ unsigned long dom0_mm_pgd_mfn;
+#endif
} crash_xen_info_t;
#endif /* __ELFCOREC_H__ */
Index: xen-ia64-unstable-14854.hg/xen/arch/ia64/xen/crash.c
===================================================================
--- xen-ia64-unstable-14854.hg.orig/xen/arch/ia64/xen/crash.c 2007-04-24
13:22:55.000000000 +0900
+++ xen-ia64-unstable-14854.hg/xen/arch/ia64/xen/crash.c 2007-04-24
14:46:59.000000000 +0900
@@ -15,16 +15,21 @@
#include <linux/hardirq.h>
#include <linux/smp.h>
#include <asm/processor.h>
+#include <xen/sched.h>
void machine_crash_shutdown(void)
{
- //printk("machine_crash_shutdown: %d\n", smp_processor_id());
+ crash_xen_info_t *info;
+ unsigned long dom0_mm_pgd_mfn;
+
if (in_interrupt())
ia64_eoi();
kexec_crash_save_info();
- printk(__FILE__ ": %s: save the eqivalent of x86's "
- "dom0->shared_info->arch.pfn_to_mfn_frame_list_list?\n",
- __FUNCTION__);
+ info = kexec_crash_save_info();
+ /* Info is not word aligned on ia64 */
+ dom0_mm_pgd_mfn = __pa(dom0->arch.mm.pgd) >> PAGE_SHIFT;
+ memcpy((char *)info + offsetof(crash_xen_info_t, dom0_mm_pgd_mfn),
+ &dom0_mm_pgd_mfn, sizeof(dom0_mm_pgd_mfn));
#ifdef CONFIG_SMP
smp_send_stop();
#endif
--
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [patch 00/12] Kexec v20070927: Xen, Simon Horman
- [Xen-ia64-devel] [patch 02/12] Kdump: Save dom0_mm_pgd_mfn in vmcore on ia64,
Simon Horman <=
- [Xen-ia64-devel] [patch 03/12] Kexec: Add kexec_disable_iosapic, Simon Horman
- [Xen-ia64-devel] [patch 11/12] Kexec: Handle alt_dtlb_miss for EFI in assembly, Simon Horman
- [Xen-ia64-devel] [patch 06/12] Kexec: Fix ia64_do_tlb_purge so that it works with XEN, Simon Horman
- [Xen-ia64-devel] [patch 04/12] Kexec: partial port of CPU_HOTPLUG, Simon Horman
- [Xen-ia64-devel] [patch 08/12] Kexec: offsets for EFI runtime regions, Simon Horman
- [Xen-ia64-devel] [patch 12/12] Kexec: Implement elf_core_save_regs(), Simon Horman
- [Xen-ia64-devel] [patch 10/12] Kexec: Map runtime EFI regions the same way as Linux, Simon Horman
- [Xen-ia64-devel] [patch 07/12] Kexec: Zap VHPT in relocate_kernel, Simon Horman
- [Xen-ia64-devel] [patch 01/12] kexec for xen, Simon Horman
- [Xen-ia64-devel] [patch 12/16] Date: Thu, 12 Jul 2007 15:50:37 +0900 Subkect: Kexec: machine addresss macros From: Simon Horman <horms@xxxxxxxxxxxx>, Simon Horman
|
|
|
|
|