From: "Jan Beulich" Subject: Re: [PATCHv11 3/9] kexec: add infrastructure for handling kexec images Date: Fri, 15 Nov 2013 14:35:11 +0000 Message-ID: <52863F2F0200007800103970@nat28.tlf.novell.com> References: <1383749386-11891-4-git-send-email-david.vrabel@citrix.com> <1383915029-25468-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: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VhKUN-0006PP-BY for xen-devel@lists.xenproject.org; Fri, 15 Nov 2013 14:35:15 +0000 In-Reply-To: <1383915029-25468-1-git-send-email-david.vrabel@citrix.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: David Vrabel Cc: xen-devel , Daniel Kiper List-Id: xen-devel@lists.xenproject.org >>> On 08.11.13 at 13:50, David Vrabel wrote: > Add the code needed to handle and load kexec images into Xen memory or > into the crash region. This is needed for the new KEXEC_CMD_load and > KEXEC_CMD_unload hypercall sub-ops. I know it's late in the game, but just now I started getting the impression that this introduced a new limitation that needs to be taken into consideration elsewhere: With the old implementation it was the kernel's responsibility to write to the reserved space or, where Xen needed to touch the space, it did so via fixmap entries. Hence there was no need for the area to have corresponding struct page_info. The new code, however, appears to make assumptions that the memory used here is part of the range covered by the frame table, and hence setup.c's determination of the base address would need to be adjusted accordingly. (I realize that this only matters on systems having more RAM than the hypervisor can make use of.) Jan