From: Keir Fraser Subject: Re: Hyp compat_memory_op() and 256 GB PV Date: Wed, 18 Feb 2009 08:23:28 +0000 Message-ID: References: <499B830A.5050301@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <499B830A.5050301@oracle.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: "mukesh.rathor@oracle.com" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 18/02/2009 03:39, "Mukesh Rathor" wrote: > Moving on to 256 GB guest, the hyp is failing the XENMEM_populate_physmap > hcall in compat_memory_op(). The problem is size too large for continuation > encoding: > > /* Is size too large for us to encode a continuation? */ > if ( cmp.rsrv.nr_extents > (UINT_MAX >> MEMOP_EXTENT_SHIFT)) > return start_extent; > > for 256 GB : nr_extents == 0x4000000 > > Currently at a loss on this one! Well, who's making the compat call? Not the guest itself presumably since it is 64-bit? So it's probably dom0? But I would think that dom0 would only do large amounts of allocation for the new domU in xc_hvm_build.c, and that is careful to allocate memory in batches of 8MB at a time. Basically you need to track down the call site of the failed compat_memory_op(). -- Keir