From: Ian Campbell 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 10:36:53 +0100 Message-ID: <1368524213.14264.24.camel@zakaz.uk.xensource.com> References: <1368473354-13771-1-git-send-email-konrad.wilk@oracle.com> <1368473354-13771-3-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1368473354-13771-3-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk Cc: George Dunlap , "dgdegra@tycho.nsa.gov" , "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org 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. Also the intra-version changelog should go afterwards following a "---" so it is stripped from the final commit. I've fixed this as I applied #2..#5. #1 was already in since before your previous posting. Ian.