From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Marek Marczykowski <marmarek@invisiblethingslab.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] libxc: fix xc_gntshr_munmap semantic
Date: Tue, 30 Apr 2013 09:21:37 -0400 [thread overview]
Message-ID: <517FC561.1050309@tycho.nsa.gov> (raw)
In-Reply-To: <1367318396.3142.499.camel@zakaz.uk.xensource.com>
On 04/30/2013 06:39 AM, Ian Campbell wrote:
> On Fri, 2013-04-26 at 17:17 +0100, Daniel De Graaf wrote:
>> On 04/26/2013 11:26 AM, Ian Campbell wrote:
>>> On Fri, 2013-04-26 at 16:15 +0100, Daniel De Graaf wrote:
>>>> On 04/26/2013 10:44 AM, Ian Campbell wrote:
>>>>> On Fri, 2013-04-26 at 13:40 +0100, Marek Marczykowski wrote:
>>>>>> "count" parameter should be pages count (as stated in comment in
>>>>>> xenctrl.h), not bytes count.
>>>>>> This patch fixes also the only user of this function (in xen sources) -
>>>>>> libvchan.
>>>>>
>>>>> Looks ok to me but Daniel De Graaf wrote all this stuff, Ccing him.
>>>>
>>>> This also looks good to me.
>>>
>>> May I take that as an Ack (or a Reviewed-by if you prefer)?
>>
>> Yes, either one is fine.
>>
>> Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
>
> Is the change from munmap to xc_gntshr_munmap, which wasn't mentioned in
> the changelog description (tut tut), correct? It seems like these
> mappings can either be establish with xc_gntshr_share_pages or with "=
> ((void*)ctrl->ring) + LARGE_RING_OFFSET", with the second one being the
> case I'm concerned about... Should it not duplicate the switch used at
> mapping time?
>
> Ian.
>
The unmap is only done if (ctrl->read.order >= PAGE_SHIFT), which is a
functional duplicate of the switch statement. However, this does bring
up a different issue: the munmap() should be replaced with the correct
one of xc_gntshr_munmap and xc_gnttab_munmap depending on ctrl->is_server,
in the same way as ctrl->ring is unmapped.
--
Daniel De Graaf
National Security Agency
next prev parent reply other threads:[~2013-04-30 13:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 11:07 bug in xc_gntshr_munmap? Marek Marczykowski
2013-04-26 13:34 ` Ian Campbell
2013-04-26 13:41 ` Marek Marczykowski
2013-04-26 12:40 ` [PATCH] libxc: fix xc_gntshr_munmap semantic Marek Marczykowski
2013-04-26 14:01 ` Marek Marczykowski
2013-04-26 14:44 ` Ian Campbell
2013-04-26 15:15 ` Daniel De Graaf
2013-04-26 15:26 ` Ian Campbell
2013-04-26 16:17 ` Daniel De Graaf
2013-04-30 10:39 ` Ian Campbell
2013-04-30 13:21 ` Daniel De Graaf [this message]
2013-04-30 14:00 ` Ian Campbell
2013-04-30 14:19 ` Daniel De Graaf
2013-04-30 14:29 ` Ian Campbell
2013-04-26 13:49 ` bug in xc_gntshr_munmap? Ian Campbell
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=517FC561.1050309@tycho.nsa.gov \
--to=dgdegra@tycho.nsa.gov \
--cc=Ian.Campbell@citrix.com \
--cc=marmarek@invisiblethingslab.com \
--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.