From: Keir Fraser <keir.xen@gmail.com>
To: Jan Beulich <JBeulich@suse.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Tim Deegan <tim@xen.org>,
dgdegra@tycho.nsa.gov, Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 1/3] xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info
Date: Fri, 10 May 2013 14:58:05 +0100 [thread overview]
Message-ID: <CDB2BB7D.24380%keir.xen@gmail.com> (raw)
In-Reply-To: <518CCE0F02000078000D503D@nat28.tlf.novell.com>
On 10/05/2013 09:38, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> On 09.05.13 at 09:44, Ian Campbell <Ian.Campbell@citrix.com> wrote:
>> On Wed, 2013-05-08 at 19:35 +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.
>>>
>>> CC: dgdera@tycho.nsa.gov
>>> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>>
>> For the tools side:
>> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>>
>> Needs a hypervisor ack though, since contrary to the subject line this
>> isn't just a tools change. Adding Keir, Tim & Jan (not sure which of
>> them is the right one here).
>
> Looks okay to me (albeit quite late in the game for a bump of
> XEN_SYSCTL_INTERFACE_VERSION), but from a formal
> perspective Keir needs to ack this for it to go in.
Acked-by: Keir Fraser <keir@xen.org>
> Jan
>
next prev parent reply other threads:[~2013-05-10 13:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 18:35 [PATCH 1/3] xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Konrad Rzeszutek Wilk
2013-05-08 18:35 ` [PATCH 2/3] libxl: Change claim_mode from bool to int Konrad Rzeszutek Wilk
2013-05-09 8:10 ` Ian Campbell
2013-05-09 13:23 ` Konrad Rzeszutek Wilk
2013-05-09 13:40 ` Ian Campbell
2013-05-08 18:35 ` [PATCH 3/3] MAINTAINERS: Change tmem maintainer Konrad Rzeszutek Wilk
2013-05-09 8:25 ` Ian Campbell
2013-05-09 7:44 ` [PATCH 1/3] xen/tools: Remove the XENMEM_get_oustanding_pages and provide the data via xc_phys_info Ian Campbell
2013-05-09 11:16 ` Tim Deegan
2013-05-10 8:38 ` Jan Beulich
2013-05-10 13:58 ` Keir Fraser [this message]
2013-05-09 13:02 ` Daniel De Graaf
2013-05-10 19:18 ` 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=CDB2BB7D.24380%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=konrad.wilk@oracle.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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.