From: Simon Horman Subject: [patch 4/4] kexec: dont initialise regions in reserve_memory() Date: Wed, 27 Feb 2008 16:10:06 +0900 Message-ID: <20080227071351.167740467@vergenet.net> References: <20080227071002.966248306@vergenet.net> Return-path: Content-Disposition: inline; filename=duplicate-region-init.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com Cc: Ian Campbell , Alex Williamson List-Id: xen-devel@lists.xenproject.org There is no need to initialise efi_memmap_res and boot_param_res in reserve_memory() for the initial xen domain as it is done in machine_kexec_setup_resources() using values from the kexec hypercall. Signed-off-by: Simon Horman --- arch/ia64/kernel/setup.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) Index: linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c =================================================================== --- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/setup.c 2008-02-26 18:26:48.000000000 +0900 +++ linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c 2008-02-26 18:33:54.000000000 +0900 @@ -336,15 +336,15 @@ reserve_memory (void) } } } -#ifdef CONFIG_XEN - } -#endif efi_memmap_res.start = ia64_boot_param->efi_memmap; efi_memmap_res.end = efi_memmap_res.start + ia64_boot_param->efi_memmap_size; boot_param_res.start = kexec_virt_to_phys(ia64_boot_param); boot_param_res.end = boot_param_res.start + sizeof(*ia64_boot_param); +#ifdef CONFIG_XEN + } +#endif } #endif /* end of memory marker */ -- -- Horms