From: Dan Magenheimer Subject: Re: [RFC/PATCH v5 1/2] hypervisor: XENMEM_claim_pages (subop of existing) hypercall Date: Tue, 20 Nov 2012 07:53:48 -0800 (PST) Message-ID: <2c098858-2357-43f0-bdbe-98618cd1564e@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matthew Daley Cc: Keir Fraser , Ian Campbell , Konrad Wilk , TimDeegan , xen-devel@lists.xen.org, Jan Beulich , Zhigang Wang List-Id: xen-devel@lists.xenproject.org > From: Matthew Daley [mailto:mattjd@gmail.com] > Subject: Re: [Xen-devel] [RFC/PATCH v5 1/2] hypervisor: XENMEM_claim_pages (subop of existing) > hypercall > > On Tue, Nov 20, 2012 at 10:27 AM, Dan Magenheimer > wrote: > > @@ -680,7 +680,7 @@ static int page_make_private(struct domain *d, struct page_info *page) > > ASSERT(page_get_owner(page) == dom_cow); > > page_set_owner(page, d); > > > > - if ( d->tot_pages++ == 0 ) > > + if ( domain_increase_tot_pages(d, 1) == 0 ) > > Here, the pre-incremented value of tot_pages is expected to be used in > the expression.. Hmmm... yes, good catch (both places)! v6 coming soon :-(