From: "Jan Beulich" Subject: Re: [v8][PATCH 09/17] hvmloader/ram: check if guest memory is out of reserved device memory maps Date: Thu, 04 Dec 2014 16:20:05 +0000 Message-ID: <548097C5020000780004CD72@mail.emea.novell.com> References: <1417425875-9634-1-git-send-email-tiejun.chen@intel.com> <1417425875-9634-10-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1417425875-9634-10-git-send-email-tiejun.chen@intel.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: Tiejun Chen Cc: kevin.tian@intel.com, wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, tim@xen.org, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 01.12.14 at 10:24, wrote: > We need to check to reserve all reserved device memory maps in e820 > to avoid any potential guest memory conflict. > > Currently, if we can't insert RDM entries directly, we may need to handle > several ranges as follows: > a. Fixed Ranges --> BUG() > lowmem_reserved_base-0xA0000: reserved by BIOS implementation, > BIOS region, > RESERVED_MEMBASE ~ 0x100000000, > b. RAM or RAM:Hole -> Try to reserve I continue to be unconvinced of the overall approach: The domain builder continues to populate these regions when it shouldn't. Yet once it doesn't, it would be most natural to simply communicate the RAM regions to hvmloader, and hvmloader would use just that to build the E820 table (and subsequently assign BARs). Jan