From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>,
Razvan Cojocaru <rcojocaru@bitdefender.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org, Julien Grall <julien.grall@citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
Tamas KLengyel <tlengyel@novetta.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>
Subject: Re: [PATCH v5] x86/arm/mm: use gfn instead of pfn in p2m_get_mem_access/p2m_set_mem_access
Date: Fri, 10 Jul 2015 12:33:54 +0100 [thread overview]
Message-ID: <1436528034.23508.267.camel@citrix.com> (raw)
In-Reply-To: <559FBDEF020000780008F678@mail.emea.novell.com>
On Fri, 2015-07-10 at 11:43 +0100, Jan Beulich wrote:
> >>> On 02.07.15 at 18:14, <julien.grall@citrix.com> wrote:
> > On 02/07/15 14:18, Vitaly Kuznetsov wrote:
> >> 'pfn' and 'start_pfn' are ambiguous, both these functions expect GFNs as input.
> >>
> >> On x86 the interface of p2m_set_mem_access() in p2m.c doesn't match the
> >> declaration in p2m-common.h as 'pfn' is being used instead of 'start_pfn'.
> >>
> >> On ARM both p2m_set_mem_access and p2m_get_mem_access interfaces don't match
> >> declarations from p2m-common.h: p2m_set_mem_access uses 'pfn' instead of
> >> 'start_pfn' and p2m_get_mem_access uses 'gpfn' instead of 'pfn'.
> >>
> >> Convert p2m_get_mem_access/p2m_set_mem_access (and __p2m_get_mem_access on ARM)
> >> interfaces to using gft_t instead of unsigned long and update all users of
> >> these functions.
> >>
> >> There is also an issue in p2m_get_mem_access on x86: 'gfn' parameter passed to
> >> gfn_lock/gfn_unlock is not defined. This code compiles only because of a
> >> coincidence: gfn_lock/gfn_unlock are currently macros which don't use their
> >> second argument.
> >>
> >> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
> >
> > For the ARM bits:
> >
> > Reviewed-by: Julien Grall <julien.grall@citrix.com>
>
> Any chance to get an ARM maintainer ack on this one?
On the basis of Julien's R-by:
Acked-by: Ian Campbell <ian.campbell@citrix.com>
prev parent reply other threads:[~2015-07-10 11:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 13:18 [PATCH v5] x86/arm/mm: use gfn instead of pfn in p2m_get_mem_access/p2m_set_mem_access Vitaly Kuznetsov
2015-07-02 16:08 ` George Dunlap
2015-07-02 16:14 ` Julien Grall
2015-07-10 10:43 ` Jan Beulich
2015-07-10 11:33 ` Ian Campbell [this message]
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=1436528034.23508.267.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien.grall@citrix.com \
--cc=keir@xen.org \
--cc=rcojocaru@bitdefender.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=tlengyel@novetta.com \
--cc=vkuznets@redhat.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.