diff mbox

[Xen-devel,linux,v3] arm: xen: implement multicall hypercall support.

Message ID 1399648061.561.47.camel@kazak.uk.xensource.com
State New
Headers show

Commit Message

Ian Campbell May 9, 2014, 3:07 p.m. UTC
On Fri, 2014-05-09 at 15:56 +0100, Stefano Stabellini wrote:
> On Mon, 28 Apr 2014, Ian Campbell wrote:
> > On Fri, 2014-04-25 at 18:17 +0100, Stefano Stabellini wrote:
> > > > > diff --git a/arch/arm64/xen/hypercall.S b/arch/arm64/xen/hypercall.S
> > > > > index 531342e..8bbe940 100644
> > > > > --- a/arch/arm64/xen/hypercall.S
> > > > > +++ b/arch/arm64/xen/hypercall.S
> > > > > @@ -80,6 +80,7 @@ HYPERCALL2(memory_op);
> > > > >  HYPERCALL2(physdev_op);
> > > > >  HYPERCALL3(vcpu_op);
> > > > >  HYPERCALL1(tmem_op);
> > > > > +HYPERCALL2(multicall);
> > > > >  
> > > > >  ENTRY(privcmd_call)
> > > > >  	mov x16, x0
> > > 
> > > You need to add an EXPORT_SYMBOL_GPL for it in arch/arm/xen/enlighten.c.
> > 
> > HYPERVISOR_multicall is not currently exported for x86 either. I think
> > we should go with this existing patch and sort out the exports
> > consistently across arch/* in a followup.
> 
> HYPERVISOR_multicall doesn't need to be exported on x86 because it is
> defined as a static inline function.

Oh, of course.

Here is the fix. Feel free to fold this into the existing commit if you
prefer.

8<-------------------------

From 40542140ca071039b2c448e53d7536a3b3134028 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@citrix.com>
Date: Fri, 9 May 2014 16:06:21 +0100
Subject: [PATCH] arm: xen: export HYPERVISOR_multicall to modules.

"arm: xen: implement multicall hypercall support." forgot to do this.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 arch/arm/xen/enlighten.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Stabellini May 9, 2014, 4:13 p.m. UTC | #1
On Fri, 9 May 2014, Ian Campbell wrote:
> On Fri, 2014-05-09 at 15:56 +0100, Stefano Stabellini wrote:
> > On Mon, 28 Apr 2014, Ian Campbell wrote:
> > > On Fri, 2014-04-25 at 18:17 +0100, Stefano Stabellini wrote:
> > > > > > diff --git a/arch/arm64/xen/hypercall.S b/arch/arm64/xen/hypercall.S
> > > > > > index 531342e..8bbe940 100644
> > > > > > --- a/arch/arm64/xen/hypercall.S
> > > > > > +++ b/arch/arm64/xen/hypercall.S
> > > > > > @@ -80,6 +80,7 @@ HYPERCALL2(memory_op);
> > > > > >  HYPERCALL2(physdev_op);
> > > > > >  HYPERCALL3(vcpu_op);
> > > > > >  HYPERCALL1(tmem_op);
> > > > > > +HYPERCALL2(multicall);
> > > > > >  
> > > > > >  ENTRY(privcmd_call)
> > > > > >  	mov x16, x0
> > > > 
> > > > You need to add an EXPORT_SYMBOL_GPL for it in arch/arm/xen/enlighten.c.
> > > 
> > > HYPERVISOR_multicall is not currently exported for x86 either. I think
> > > we should go with this existing patch and sort out the exports
> > > consistently across arch/* in a followup.
> > 
> > HYPERVISOR_multicall doesn't need to be exported on x86 because it is
> > defined as a static inline function.
> 
> Oh, of course.
> 
> Here is the fix. Feel free to fold this into the existing commit if you
> prefer.
> 
> 8<-------------------------
> 
> >From 40542140ca071039b2c448e53d7536a3b3134028 Mon Sep 17 00:00:00 2001
> From: Ian Campbell <ian.campbell@citrix.com>
> Date: Fri, 9 May 2014 16:06:21 +0100
> Subject: [PATCH] arm: xen: export HYPERVISOR_multicall to modules.
> 
> "arm: xen: implement multicall hypercall support." forgot to do this.
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

added to devel/for-linus-3.16


>  arch/arm/xen/enlighten.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
> index b96723e..488ecdb 100644
> --- a/arch/arm/xen/enlighten.c
> +++ b/arch/arm/xen/enlighten.c
> @@ -350,4 +350,5 @@ EXPORT_SYMBOL_GPL(HYPERVISOR_memory_op);
>  EXPORT_SYMBOL_GPL(HYPERVISOR_physdev_op);
>  EXPORT_SYMBOL_GPL(HYPERVISOR_vcpu_op);
>  EXPORT_SYMBOL_GPL(HYPERVISOR_tmem_op);
> +EXPORT_SYMBOL_GPL(HYPERVISOR_multicall);
>  EXPORT_SYMBOL_GPL(privcmd_call);
> -- 
> 1.7.10.4
> 
> 
>
Ian Campbell May 9, 2014, 4:16 p.m. UTC | #2
On Fri, 2014-05-09 at 17:13 +0100, Stefano Stabellini wrote:
> On Fri, 9 May 2014, Ian Campbell wrote:
> > On Fri, 2014-05-09 at 15:56 +0100, Stefano Stabellini wrote:
> > > On Mon, 28 Apr 2014, Ian Campbell wrote:
> > > > On Fri, 2014-04-25 at 18:17 +0100, Stefano Stabellini wrote:
> > > > > > > diff --git a/arch/arm64/xen/hypercall.S b/arch/arm64/xen/hypercall.S
> > > > > > > index 531342e..8bbe940 100644
> > > > > > > --- a/arch/arm64/xen/hypercall.S
> > > > > > > +++ b/arch/arm64/xen/hypercall.S
> > > > > > > @@ -80,6 +80,7 @@ HYPERCALL2(memory_op);
> > > > > > >  HYPERCALL2(physdev_op);
> > > > > > >  HYPERCALL3(vcpu_op);
> > > > > > >  HYPERCALL1(tmem_op);
> > > > > > > +HYPERCALL2(multicall);
> > > > > > >  
> > > > > > >  ENTRY(privcmd_call)
> > > > > > >  	mov x16, x0
> > > > > 
> > > > > You need to add an EXPORT_SYMBOL_GPL for it in arch/arm/xen/enlighten.c.
> > > > 
> > > > HYPERVISOR_multicall is not currently exported for x86 either. I think
> > > > we should go with this existing patch and sort out the exports
> > > > consistently across arch/* in a followup.
> > > 
> > > HYPERVISOR_multicall doesn't need to be exported on x86 because it is
> > > defined as a static inline function.
> > 
> > Oh, of course.
> > 
> > Here is the fix. Feel free to fold this into the existing commit if you
> > prefer.
> > 
> > 8<-------------------------
> > 
> > >From 40542140ca071039b2c448e53d7536a3b3134028 Mon Sep 17 00:00:00 2001
> > From: Ian Campbell <ian.campbell@citrix.com>
> > Date: Fri, 9 May 2014 16:06:21 +0100
> > Subject: [PATCH] arm: xen: export HYPERVISOR_multicall to modules.
> > 
> > "arm: xen: implement multicall hypercall support." forgot to do this.
> > 
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> 
> added to devel/for-linus-3.16

thanks.
diff mbox

Patch

diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index b96723e..488ecdb 100644
--- a/arch/arm/xen/enlighten.c
+++ b/arch/arm/xen/enlighten.c
@@ -350,4 +350,5 @@  EXPORT_SYMBOL_GPL(HYPERVISOR_memory_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_physdev_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_vcpu_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_tmem_op);
+EXPORT_SYMBOL_GPL(HYPERVISOR_multicall);
 EXPORT_SYMBOL_GPL(privcmd_call);