From: Ian Jackson Subject: Re: [PATCH v4 6/8] hvmloader: Load large devices into high MMIO space as needed Date: Fri, 21 Jun 2013 12:21:49 +0100 Message-ID: <20932.14157.279776.216096@mariner.uk.xensource.com> References: <1371811594-31135-1-git-send-email-george.dunlap@eu.citrix.com> <1371811594-31135-7-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1371811594-31135-7-git-send-email-george.dunlap@eu.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: George Dunlap Cc: Keir Fraser , Hanweidong , Stefano Stabellini , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("[PATCH v4 6/8] hvmloader: Load large devices into high MMIO space as needed"): > Keep track of how much mmio space is left total, as well as the amount > of "low" MMIO space (<4GiB), and only load devices into high memory if > there is not enough low memory for the rest of the devices to fit. > > Because devices are processed by size in order from large to small, > this should preferentially relocate devices with large BARs to 64-bit > space. Does this have similar rounding/padding considerations as I discussed in response to 5/8 ? I think it probably does... In fact this one is worse because you calculate whether the first (biggest) device will fit without considering its rounding, and then allocate it with rounding. Ian.