xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>, Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH for-4.6] tools/libxc: linux: Don't use getpagesize() when unmapping the grants
Date: Wed, 12 Aug 2015 11:07:47 +0100	[thread overview]
Message-ID: <55CB1AF3.20406@citrix.com> (raw)
In-Reply-To: <1439297334.9747.238.camel@citrix.com>

Hi Ian,

On 11/08/2015 13:48, Ian Campbell wrote:
> On Fri, 2015-08-07 at 22:45 +0100, Wei Liu wrote:
>> On Fri, Aug 07, 2015 at 07:53:55PM +0100, Julien Grall wrote:
>>> The grants are based on the Xen granularity (i.e 4KB). While the
>>> function
>>> to map grants for Linux (linux_gnttab_grant_map) is using the correct
>>> size (XC_PAGE_SIZE), the unmap one (linux_gnttab_munmap) is using
>>> getpagesize().
>>>
>>> On domain using a page granularity different than Xen (this is the case
>>> for AARCH64 guest using 64KB page), the unmap will be called with the
>>> wrong size.
>>>
>>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
>>>
>>> ---
>>> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
>>> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>>> Cc: Ian Campbell <ian.campbell@citrix.com>
>>> Cc: Wei Liu <wei.liu2@citrix.com>
>>>
>>
>> Acked-by: Wei Liu <wei.liu2@citrix.com>
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
>> I think this is a bug fix and should be applied for 4.6.
>
> Agreed.
>
> WRT to backports for 4.5 I'd appreciate being given a full list of required
> fixes once everything is in place and working for 4.6/devbranch rather than
> my tracking it piecemeal.

I have a working branch with Xen tools running on 64KB, and I didn't 
expected to find another problem.

I spotted this one by reading the code and see inconsistency between the 
mmap and the mmunmap. And I'm sure I haven't spot all the things because 
testing every configuration to see if 64KB guest are working is a huge work.

Anyway, I will send a mail with all the patch to backport.

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-08-12 10:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07 18:53 [PATCH for-4.6] tools/libxc: linux: Don't use getpagesize() when unmapping the grants Julien Grall
2015-08-07 21:45 ` Wei Liu
2015-08-11 12:48   ` Ian Campbell
2015-08-12 10:07     ` Julien Grall [this message]
2015-08-13 10:31     ` 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=55CB1AF3.20406@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).