All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	"dgdegra@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
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	[thread overview]
Message-ID: <20130514132843.GI5558@phenom.dumpdata.com> (raw)
In-Reply-To: <1368524213.14264.24.camel@zakaz.uk.xensource.com>

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 <ian.campbell@citrix.com>
> > Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
> > Reviewed-by: Tim Deegan <tim@xen.org>
> > Acked-by: Keir Fraser <keir.xen@gmail.com>
> > [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 <konrad.wilk@oracle.com>
> 
> 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
> 

  reply	other threads:[~2013-05-14 13:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 19:29 [PATCH/GIT PULL) Fixes for Xen 4.3 (v2) Konrad Rzeszutek Wilk
2013-05-13 19:29 ` [PATCH 1/5] MAINTAINERS: Change tmem maintainer Konrad Rzeszutek Wilk
2013-05-14  7:47   ` Jan Beulich
2013-05-14 13:26     ` Konrad Rzeszutek Wilk
2013-05-14 18:46       ` Ian Campbell
2013-05-13 19:29 ` [PATCH 2/5] hypervisor/xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Konrad Rzeszutek Wilk
2013-05-14  9:36   ` Ian Campbell
2013-05-14 13:28     ` Konrad Rzeszutek Wilk [this message]
2013-05-13 19:29 ` [PATCH 3/5] libxl: Change claim_mode from bool to int Konrad Rzeszutek Wilk
2013-05-13 19:29 ` [PATCH 4/5] libxl: claim: Print the values in 'xl info' unconditionally Konrad Rzeszutek Wilk
2013-05-13 19:29 ` [PATCH 5/5] libxl: Make 'xl vcpu-set' work properly on overcommited hosts with an override Konrad Rzeszutek Wilk
  -- strict thread matches above, loose matches on Subject: below --
2013-05-10 21:00 [PATCH/GIT PULL] Fixes for Xen v4.3 (v1) Konrad Rzeszutek Wilk
2013-05-10 21:00 ` [PATCH 2/5] hypervisor/xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130514132843.GI5558@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.