From: "Jan Beulich" Subject: kexec-ed kernel possibly needing low memory Date: Fri, 14 Nov 2014 10:00:49 +0000 Message-ID: <5465E0E10200007800047902@mail.emea.novell.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 1XpDgR-0003Vi-2U for xen-devel@lists.xenproject.org; Fri, 14 Nov 2014 10:00:51 +0000 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 List-Id: xen-devel@lists.xenproject.org David, we're being approached with the situation where a disk driver in the kexec-ed kernel needs memory below 4G in order to perform DMA (e.g. for the swiotlb to be set up). Linux not so long ago invented a two area approach, which doesn't fit with the current single KEXEC_RANGE_MA_CRASH area obtainable via KEXEC_CMD_kexec_get_range. I see multiple options - do no change at all; the user can deal with this by explicitly specifying an area below 4G via "crashkernel=" - add KEXEC_RANGE_MA_CRASH_LOW - when not asked for a specific address, always allocate the (single) area below 4G if there is enough space - provide a means to request allocating the (single) area below 4G (or perhaps more generically below a certain boundary) without requiring an exact address to be specified Do you have any preference here, or do you see other viable alternatives? Thanks, Jan