From: Keir Fraser Subject: Re: revisit the super page support in HVM restore Date: Wed, 19 Aug 2009 08:29:18 +0100 Message-ID: References: <4A8BA4FE.9070105@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A8BA4FE.9070105@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: "Zhai, Edwin" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 19/08/2009 08:08, "Zhai, Edwin" wrote: > So how about this new method: > * Not tracking each of pfn inside 2M page, but trying best to allocate > 2M pages if the 2M page covering this pfn is not allocated. > * There may be holes inside new allocated 2M pages that are not synced in > this batch, but we don't care and assume these missing pfns will > come in future. > > This new method is simple as the super page support for PV guest is > already there. You wil fail to restore a guest which has ballooned down its memory as there will be 4k holes in its memory map. You will allocate 2MB superpages despite these holes, which do not get fixed up until end of restore process, and run out of memory in the host, or against the guest's maxmem limit. -- Keir