From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH 2/5] hypervisor/xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Date: Tue, 14 May 2013 09:28:43 -0400 Message-ID: <20130514132843.GI5558@phenom.dumpdata.com> References: <1368473354-13771-1-git-send-email-konrad.wilk@oracle.com> <1368473354-13771-3-git-send-email-konrad.wilk@oracle.com> <1368524213.14264.24.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1368524213.14264.24.camel@zakaz.uk.xensource.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: Ian Campbell Cc: George Dunlap , "dgdegra@tycho.nsa.gov" , "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Tue, May 14, 2013 at 10:36:53AM +0100, Ian Campbell wrote: > On Mon, 2013-05-13 at 20:29 +0100, Konrad Rzeszutek Wilk wrote: > > During the review of the patches it was noticed that there exists > > a race wherein the 'free_memory' value consists of information from > > two hypercalls. That is the XEN_SYSCTL_physinfo and XENMEM_get_outstanding_pages. > > > > The free memory the host has available for guest is the difference between > > the 'free_pages' (from XEN_SYSCTL_physinfo) and 'outstanding_pages'. As they > > are two hypercalls many things can happen in between the execution of them. > > > > This patch resolves this by eliminating the XENMEM_get_outstanding_pages > > hypercall and providing the free_pages and outstanding_pages information > > via the xc_phys_info structure. > > > > It also removes the XSM hooks and adds locking as needed. > > > > Acked-by: Ian Campbell > > Acked-by: Daniel De Graaf > > Reviewed-by: Tim Deegan > > Acked-by: Keir Fraser > > [v1: Fix missing XSM hooks cleanups, fixed get_outstanding_claims fnc, > > add Acked/Reviewed-by] > > [v2: s/%ld/PRIu64/ as we don't use 'long' anymore] > > Signed-off-by: Konrad Rzeszutek Wilk > > I think we've discussed this before but your tags should be in a roughly > chronological order, not backwards in time as you have them. Or at least > that's how everyone else does it. Grrr.. Old habbits. Will make sure to have it in the prefer order. > > Also the intra-version changelog should go afterwards following a "---" > so it is stripped from the final commit. OK, will do that in the future as well for Xen patches. > > I've fixed this as I applied #2..#5. #1 was already in since before your > previous posting. Thank you. > > Ian. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >