From: Daniel Kiper Subject: Re: [PATCHv2] x86: map portion of kexec crash area that is within the direct map area Date: Wed, 8 Jan 2014 19:44:32 +0100 Message-ID: <20140108184432.GA3633@olila.local.net-space.pl> References: <1389206119-13527-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1389206119-13527-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: Don Slutz , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Jan 08, 2014 at 06:35:19PM +0000, David Vrabel wrote: > From: David Vrabel > > Commit 7113a45451a9f656deeff070e47672043ed83664 (kexec/x86: do not map > crash kernel area) causes fatal page faults when loading a crash > image. The attempt to zero the first control page allocated from the > crash region will fault as the VA return by map_domain_page() has no > mapping. > > The fault will occur on non-debug builds of Xen when the crash area is > below 5 TiB (which will be most systems). > > The assumption that the crash area mapping was not used is incorrect. > map_domain_page() is used when loading an image and building the > image's page tables to temporarily map the crash area, thus the > mapping is required if the crash area is in the direct map area. > > Reintroduce the mapping, but only the portions of the crash area that > are within the direct map area. > > Reported-by: Don Slutz > Signed-off-by: David Vrabel > Cc: Daniel Kiper > --- > This fixes a Xen crash so is an important fix for the 4.4 release.. Thanks. It looks quite good for me but I would like to do some tests. I will send you results by the end of this week. Daniel