* [PATCH] powerpc/epapr: export epapr_hypercall_start
@ 2012-08-10 22:21 Scott Wood
2012-08-11 7:01 ` Geert Uytterhoeven
2012-08-11 13:10 ` Alexander Graf
0 siblings, 2 replies; 5+ messages in thread
From: Scott Wood @ 2012-08-10 22:21 UTC (permalink / raw)
To: agraf; +Cc: Geert Uytterhoeven, linuxppc-dev, kvm, kvm-ppc
This fixes breakage introduced by the following commit:
commit 6d2d82627f4f1e96a33664ace494fa363e0495cb
Author: Liu Yu-B13201 <Yu.Liu@freescale.com>
Date: Tue Jul 3 05:48:56 2012 +0000
PPC: Don't use hardcoded opcode for ePAPR hcall invocation
when a driver that uses ePAPR hypercalls is built as a module.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
---
Sending to Alex even though this isn't KVM-specific since the commit it
fixes is still only in his tree (and linux-next).
arch/powerpc/kernel/ppc_ksyms.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
index 3e40315..e597dde 100644
--- a/arch/powerpc/kernel/ppc_ksyms.c
+++ b/arch/powerpc/kernel/ppc_ksyms.c
@@ -43,6 +43,7 @@
#include <asm/dcr.h>
#include <asm/ftrace.h>
#include <asm/switch_to.h>
+#include <asm/epapr_hcalls.h>
#ifdef CONFIG_PPC32
extern void transfer_to_handler(void);
@@ -192,3 +193,7 @@ EXPORT_SYMBOL(__arch_hweight64);
#ifdef CONFIG_PPC_BOOK3S_64
EXPORT_SYMBOL_GPL(mmu_psize_defs);
#endif
+
+#ifdef CONFIG_EPAPR_PARAVIRT
+EXPORT_SYMBOL(epapr_hypercall_start);
+#endif
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/epapr: export epapr_hypercall_start
2012-08-10 22:21 [PATCH] powerpc/epapr: export epapr_hypercall_start Scott Wood
@ 2012-08-11 7:01 ` Geert Uytterhoeven
2012-08-11 13:07 ` Tabi Timur-B04825
2012-08-11 13:10 ` Alexander Graf
1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2012-08-11 7:01 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev, agraf, kvm-ppc, kvm
On Sat, Aug 11, 2012 at 12:21 AM, Scott Wood <scottwood@freescale.com> wrote:
> +EXPORT_SYMBOL(epapr_hypercall_start);
EXPORT_SYMBOL_GPL?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/epapr: export epapr_hypercall_start
2012-08-11 7:01 ` Geert Uytterhoeven
@ 2012-08-11 13:07 ` Tabi Timur-B04825
2012-08-13 17:29 ` Scott Wood
0 siblings, 1 reply; 5+ messages in thread
From: Tabi Timur-B04825 @ 2012-08-11 13:07 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Wood Scott-B07421, linuxppc-dev@lists.ozlabs.org, agraf@suse.de,
kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
On Sat, Aug 11, 2012 at 2:01 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Sat, Aug 11, 2012 at 12:21 AM, Scott Wood <scottwood@freescale.com> wr=
ote:
>> +EXPORT_SYMBOL(epapr_hypercall_start);
>
> EXPORT_SYMBOL_GPL?
We prefer EXPORT_SYMBOL. We don't want to restrict our customers from
having to use GPL code.
--=20
Timur Tabi
Linux kernel developer at Freescale=
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/epapr: export epapr_hypercall_start
2012-08-11 13:07 ` Tabi Timur-B04825
@ 2012-08-13 17:29 ` Scott Wood
0 siblings, 0 replies; 5+ messages in thread
From: Scott Wood @ 2012-08-13 17:29 UTC (permalink / raw)
To: Tabi Timur-B04825
Cc: Wood Scott-B07421, kvm@vger.kernel.org, agraf@suse.de,
kvm-ppc@vger.kernel.org, Geert Uytterhoeven,
linuxppc-dev@lists.ozlabs.org
On 08/11/2012 08:07 AM, Tabi Timur-B04825 wrote:
> On Sat, Aug 11, 2012 at 2:01 AM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>> On Sat, Aug 11, 2012 at 12:21 AM, Scott Wood <scottwood@freescale.com> wrote:
>>> +EXPORT_SYMBOL(epapr_hypercall_start);
>>
>> EXPORT_SYMBOL_GPL?
>
> We prefer EXPORT_SYMBOL. We don't want to restrict our customers from
> having to use GPL code.
>
More specifically in this case, I don't see how use of this symbol in
any way suggests that the code would be GPL-derivative. The API is
documented in the ePAPR standard or other external sources -- not a
kernel internal implementation issue. The contents of
epapr_hypercall_start itself are not copyrightable (by default it's
basically "return -1", and is patched at runtime with a few instructions
provided by the hypervisor). The header file with the inline accessors
is dual licensed (and also unlikely to be copyrightable, in terms of
what actually makes it into the output binary).
-Scott
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/epapr: export epapr_hypercall_start
2012-08-10 22:21 [PATCH] powerpc/epapr: export epapr_hypercall_start Scott Wood
2012-08-11 7:01 ` Geert Uytterhoeven
@ 2012-08-11 13:10 ` Alexander Graf
1 sibling, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2012-08-11 13:10 UTC (permalink / raw)
To: Scott Wood; +Cc: Geert Uytterhoeven, linuxppc-dev, kvm, kvm-ppc
On 11.08.2012, at 00:21, Scott Wood wrote:
> This fixes breakage introduced by the following commit:
>
> commit 6d2d82627f4f1e96a33664ace494fa363e0495cb
> Author: Liu Yu-B13201 <Yu.Liu@freescale.com>
> Date: Tue Jul 3 05:48:56 2012 +0000
>
> PPC: Don't use hardcoded opcode for ePAPR hcall invocation
>
> when a driver that uses ePAPR hypercalls is built as a module.
>
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
> Sending to Alex even though this isn't KVM-specific since the commit it
> fixes is still only in his tree (and linux-next).
Thanks, applied to kvm-ppc-next.
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-13 17:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 22:21 [PATCH] powerpc/epapr: export epapr_hypercall_start Scott Wood
2012-08-11 7:01 ` Geert Uytterhoeven
2012-08-11 13:07 ` Tabi Timur-B04825
2012-08-13 17:29 ` Scott Wood
2012-08-11 13:10 ` Alexander Graf
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).