From: Keir Fraser Subject: Re: [PATCH][1/4] Enable 1GB for Xen HVM host page Date: Wed, 24 Feb 2010 09:12:04 +0000 Message-ID: References: <6CADD16F56BC954D8E28F3836FA7ED71282AC1EF1A@shzsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6CADD16F56BC954D8E28F3836FA7ED71282AC1EF1A@shzsmsx501.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xu, Dongxiao" , "'xen-devel@lists.xensource.com'" Cc: "Huang2, Wei" List-Id: xen-devel@lists.xenproject.org On 24/02/2010 04:25, "Xu, Dongxiao" wrote: > When allocating guest memory without the patch, Xend will treat 3G-4G > as normal memory, ignoring the 3.75-4G MMIO hole. This patch modifies > MMIO start address to be 1GB aligned and could fix the issue. > > Indeed, this patch may have some influence to pure 32bit guest, > changing its max memory from 3.75G to 3G. > > Anyway, we can change it to alloc 2M pages between 3G and 4G if you > think this particular patch is improper. I would expect it to fall back to 2MB extents, and from there back to 4kB extents as necessary, for any range where: (a) the range to be allocated for is not 1GB-sized and -aligned; or (b) no 1GB extents are available from Xen's free pool. -- Keir