|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [patch 06/16] Kdump: pass control page to hypervisor
On ia64 the control page needs to be passed down to the hypervisor
on kexec.
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: linux-2.6.18-xen.hg/arch/ia64/kernel/machine_kexec.c
===================================================================
--- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/machine_kexec.c 2007-07-09
15:21:11.000000000 +0900
+++ linux-2.6.18-xen.hg/arch/ia64/kernel/machine_kexec.c 2007-07-09
15:28:53.000000000 +0900
@@ -18,6 +18,10 @@
#include <asm/setup.h>
#include <asm/delay.h>
#include <asm/meminit.h>
+#ifdef CONFIG_XEN
+#include <xen/interface/kexec.h>
+#include <asm/kexec.h>
+#endif
typedef void (*relocate_new_kernel_t)(unsigned long, unsigned long,
struct ia64_boot_param *, unsigned long);
@@ -80,6 +80,12 @@ void machine_shutdown(void)
}
kexec_disable_iosapic();
}
+#else /* CONFIG_XEN */
+void machine_kexec_setup_load_arg(xen_kexec_image_t *xki,struct kimage *image)
+{
+ xki->reboot_code_buffer =
+ kexec_page_to_pfn(image->control_code_page) << PAGE_SHIFT;
+}
#endif /* CONFIG_XEN */
/*
Index: linux-2.6.18-xen.hg/include/xen/interface/kexec.h
===================================================================
--- linux-2.6.18-xen.hg.orig/include/xen/interface/kexec.h 2007-07-10
11:11:56.000000000 +0900
+++ linux-2.6.18-xen.hg/include/xen/interface/kexec.h 2007-07-10
11:12:07.000000000 +0900
@@ -79,6 +79,9 @@ typedef struct xen_kexec_image {
#if defined(__i386__) || defined(__x86_64__)
unsigned long page_list[KEXEC_XEN_NO_PAGES];
#endif
+#if defined(__ia64__)
+ unsigned long reboot_code_buffer;
+#endif
unsigned long indirection_page;
unsigned long start_address;
} xen_kexec_image_t;
--
--
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-devel] Re: [patch 01/16] sysctl: implement CTL_UNNUMBERED, (continued)
- [Xen-ia64-devel] [patch 02/16] Initialise xen_start_info earlier in setup_arch(), Simon Horman
- [Xen-ia64-devel] [patch 05/16] Kexec: Use xen machine_kexec() and machine_shutdown(), Simon Horman
- [Xen-ia64-devel] [patch 14/16] Kdump: Add /proc/iomem_machine, Simon Horman
- [Xen-ia64-devel] [patch 06/16] Kdump: pass control page to hypervisor,
Simon Horman <=
- [Xen-ia64-devel] [patch 15/16] Kexec: Purge the VHPT entry in the TLB on kexec, Simon Horman
- [Xen-ia64-devel] [patch 10/16] Kexec: Call xen_machine_kexec_register_resources, Simon Horman
- [Xen-ia64-devel] [patch 04/16] Kexec: Add xen_limit_pages_to_max_mfn(), Simon Horman
- [Xen-ia64-devel] [patch 09/16] Kexec/Kdump: honour non-zero crashkernel offset, Simon Horman
- [Xen-ia64-devel] [patch 11/16] Update default config to enable kexec, Simon Horman
- [Xen-ia64-devel] [patch 08/16] CONFIG_KEXEC/CONFIG_CRASH_DUMP permutations, Simon Horman
- [Xen-ia64-devel] [patch 1/2] Allow architectures to specify the location of /proc/iomem, Simon Horman
- [Xen-ia64-devel] [patch 03/16] IA64 Kexec/kdump, Simon Horman
|
|
|
|
|