From: "Jan Beulich" Subject: Re: [PATCH] kexec/x86: Do not map crash kernel area Date: Tue, 10 Dec 2013 08:22:29 +0000 Message-ID: <52A6DD55020000780010BAFC@nat28.tlf.novell.com> References: <1386612083-21453-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VqIaQ-00040p-Gv for xen-devel@lists.xenproject.org; Tue, 10 Dec 2013 08:22:34 +0000 In-Reply-To: <1386612083-21453-1-git-send-email-daniel.kiper@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: andrew.cooper3@citrix.com, keir@xen.org, david.vrabel@citrix.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 09.12.13 at 19:01, Daniel Kiper wrote: > Do not map crash kernel area. This mapping is not in use anymore. That description to me reads like it was used before. Was it really? I think the issue of it possibly being outside of mappable memory has been in existence for quite a while, and hence with the description being worded in that way this would be a suitable trigger for backporting to the stable trees. Jan > Signed-off-by: Daniel Kiper > --- > xen/arch/x86/setup.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c > index f07ee2b..4833ca3 100644 > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -1097,9 +1097,7 @@ void __init __start_xen(unsigned long mbi_p) > mod[i].mod_start, > PFN_UP(mod[i].mod_end), PAGE_HYPERVISOR); > } > - map_pages_to_xen((unsigned long)__va(kexec_crash_area.start), > - kexec_crash_area.start >> PAGE_SHIFT, > - PFN_UP(kexec_crash_area.size), PAGE_HYPERVISOR); > + > xen_virt_end = ((unsigned long)_end + (1UL << L2_PAGETABLE_SHIFT) - 1) & > ~((1UL << L2_PAGETABLE_SHIFT) - 1); > destroy_xen_mappings(xen_virt_end, XEN_VIRT_START + > BOOTSTRAP_MAP_BASE); > -- > 1.7.10.4