From: Ian Campbell Subject: Re: [PATCH] libxc: fix claim mode when creating HVM guest Date: Tue, 4 Feb 2014 15:50:44 +0000 Message-ID: <1391529044.6497.41.camel@kazak.uk.xensource.com> References: <1390845218-823-1-git-send-email-wei.liu2@citrix.com> <20140129183349.GA14312@phenom.dumpdata.com> <52EA63E2.9020603@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52EA63E2.9020603@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: Ian Jackson , xen-devel@lists.xen.org, Wei Liu List-Id: xen-devel@lists.xenproject.org On Thu, 2014-01-30 at 14:38 +0000, George Dunlap wrote: > On 01/29/2014 06:33 PM, Konrad Rzeszutek Wilk wrote: > > On Mon, Jan 27, 2014 at 05:53:38PM +0000, Wei Liu wrote: > >> The original code is wrong because: > >> * claim mode wants to know the total number of pages needed while > >> original code provides the additional number of pages needed. > >> * if pod is enabled memory will already be allocated by the time we try > >> to claim memory. > >> > >> So the fix would be: > >> * move claim mode before actual memory allocation. > >> * pass the right number of pages to hypervisor. > >> > >> The "right number of pages" should be number of pages of target memory > >> minus VGA_HOLE_SIZE, regardless of whether PoD is enabled. > >> > >> This fixes bug #32. > >> > >> Signed-off-by: Wei Liu > >> Cc: Konrad Wilk > > > > And also 'Tested-by: Konrad Rzeszutek Wilk ' > > Right, well nobody has shouted, so: > > Release-acked-by: George Dunlap Applied. Thanks all.