From: Ewan Mellor Subject: Re: [PATCH] [XEND] abstract architecture-specific bits in image.py Date: Wed, 30 Aug 2006 09:48:10 +0100 Message-ID: <20060830084810.GA26689@leeni.uk.xensource.com> References: <1156283455.8683.90.camel@basalt.austin.ibm.com> <20060829221630.GC16356@leeni.uk.xensource.com> <1156904878.8182.9.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1156904878.8182.9.camel@basalt.austin.ibm.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: Hollis Blanchard Cc: Tim Deegan , xen-devel , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On Tue, Aug 29, 2006 at 09:27:58PM -0500, Hollis Blanchard wrote: > On Tue, 2006-08-29 at 23:16 +0100, Ewan Mellor wrote: > > On Tue, Aug 22, 2006 at 04:50:54PM -0500, Hollis Blanchard wrote: > > > > > Since this patch wasn't committed, the shadow2 changes created > > > conflicts. Here is the respin. Note that I have not tested with shadow2, > > > but as you can see below the math doesn't need to be so complicated. > > > > > > Ewan, please apply or comment. > > > > Applied, thanks Hollis. Is this your only outstanding patch? I got lost > > when you rev'd this one a couple of times ;-) > > Thanks Ewan! I will have another patch for you shortly. :) > > Actually there was one bug we discovered as a result of the shadow > merge: shadow_mem_control's arguments should be MB, not bytes. Here's > the pseudo-diff: > - shadow_cur = xc.shadow_mem_control(self.domid, shadow_kb * 1024) > + shadow_cur = xc.shadow_mem_control(self.domid, shadow_kb / 1024) I've done that, but with (shadow_kb + 1023) / 1024, as it needs to be rounded up. Cheers, Ewan.