|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [patch 02/16] Initialise xen_start_info earlier in setu
xen_start_info needs to be set before efi_init() is called on ia64
because xen_machine_kexec_setup_resources() is indirectly
called by efi_init() and it needs a working is_initial_xendomain();
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c
===================================================================
--- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/setup.c 2007-09-25
13:56:10.000000000 +0900
+++ linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c 2007-09-25
13:59:08.000000000 +0900
@@ -442,6 +442,14 @@ early_param("nomca", setup_nomca);
void __init
setup_arch (char **cmdline_p)
{
+#ifdef CONFIG_XEN
+ shared_info_t *s = NULL;
+ if (is_running_on_xen()) {
+ s = HYPERVISOR_shared_info;
+ xen_start_info = __va(s->arch.start_info_pfn << PAGE_SHIFT);
+ }
+#endif
+
unw_init();
#ifdef CONFIG_XEN
@@ -528,10 +536,6 @@ setup_arch (char **cmdline_p)
#ifdef CONFIG_XEN
if (is_running_on_xen()) {
- shared_info_t *s = HYPERVISOR_shared_info;
-
- xen_start_info = __va(s->arch.start_info_pfn << PAGE_SHIFT);
-
printk("Running on Xen! start_info_pfn=0x%lx nr_pages=%ld "
"flags=0x%x\n", s->arch.start_info_pfn,
xen_start_info->nr_pages, xen_start_info->flags);
--
--
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 2/2] Set alternate location for /proc/iomem on ia64 xen, (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
|
|
|
|
|