From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: david.vrabel@citrix.com,
xen-devel <xen-devel@lists.xenproject.org>,
boris.ostrovsky@oracle.com, linux-kernel@vger.kernel.org
Subject: Re: [Xen-devel] [PATCH] xen/p2m: Export set_phys_to_machine.
Date: Fri, 6 Sep 2013 10:39:09 -0400 [thread overview]
Message-ID: <20130906143909.GC5140@phenom.dumpdata.com> (raw)
In-Reply-To: <5229FD6A02000078000F119C@nat28.tlf.novell.com>
On Fri, Sep 06, 2013 at 03:06:02PM +0100, Jan Beulich wrote:
> >>> On 06.09.13 at 16:00, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > We have already exported 'get_phys_to_machine' and there are
> > third-party drivers that depend on this other symbol. As such
> > lets make this balanced and also export this symbol.
>
> I tend to disagree: Allowing external modules read access to some
> internal state is quite different from also allowing them to alter it.
I am not following you. We have drivers in the kernel that do
this now. For example xen-netfront uses set_phys_to_machine.
Oddly it can be built as a module. I am wondering how it actually
works without this EXPORT symbol.
>
> Jan
>
> > Reported-by: Yuval Shaia <yuval.shaia@oracle.com>
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > ---
> > arch/x86/xen/p2m.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
> > index 0d4ec35..cdb96bc 100644
> > --- a/arch/x86/xen/p2m.c
> > +++ b/arch/x86/xen/p2m.c
> > @@ -847,6 +847,7 @@ bool set_phys_to_machine(unsigned long pfn, unsigned long mfn)
> >
> > return true;
> > }
> > +EXPORT_SYMBOL_GPL(set_phys_to_machine);
> >
> > #define M2P_OVERRIDE_HASH_SHIFT 10
> > #define M2P_OVERRIDE_HASH (1 << M2P_OVERRIDE_HASH_SHIFT)
> > --
> > 1.8.3.1
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>
>
next prev parent reply other threads:[~2013-09-06 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 14:00 [PATCH] xen/p2m: Export set_phys_to_machine Konrad Rzeszutek Wilk
2013-09-06 14:06 ` [Xen-devel] " Jan Beulich
2013-09-06 14:39 ` Konrad Rzeszutek Wilk [this message]
2013-09-06 14:49 ` Jan Beulich
2013-09-06 16:07 ` David Vrabel
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=20130906143909.GC5140@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--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