From: Stefano Stabellini Subject: Re: [PATCH linux v3] arm: xen: implement multicall hypercall support. Date: Fri, 9 May 2014 15:56:26 +0100 Message-ID: References: <1397739444-31407-1-git-send-email-ian.campbell@citrix.com> <1397739457-25541-1-git-send-email-ian.campbell@citrix.com> <1398340990.18537.342.camel@kazak.uk.xensource.com> <1398677229.29700.11.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398677229.29700.11.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, David Vrabel , Boris Ostrovsky , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org 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. HYPERVISOR_multicall would need to be exported on ARM because has an entry point in assembly. Otherwise you can avoid exporting the symbol if you are completely sure that the hypercall cannot and should not be made by a module but in that case you should at the very least add a comment.