From: Ian Campbell Subject: Re: [PATCH v1 1/8]: PVH basic and hader file changes Date: Wed, 26 Sep 2012 14:45:17 +0100 Message-ID: <1348667117.19176.46.camel@zakaz.uk.xensource.com> References: <20120921121511.30001c08@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120921121511.30001c08@mantra.us.oracle.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: Mukesh Rathor Cc: "Xen-devel@lists.xensource.com" , Stefano Stabellini , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Fri, 2012-09-21 at 20:15 +0100, Mukesh Rathor wrote: > diff --git a/drivers/xen/events.c b/drivers/xen/events.c > index 7595581..f656791 100644 > --- a/drivers/xen/events.c > +++ b/drivers/xen/events.c > @@ -1755,7 +1755,7 @@ int xen_set_callback_via(uint64_t via) > } > EXPORT_SYMBOL_GPL(xen_set_callback_via); > > -#ifdef CONFIG_XEN_PVHVM > + > /* Vector callbacks are better than PCI interrupts to receive event > * channel notifications because we can receive vector callbacks on > any > * vcpu and we don't need PCI support or APIC interactions. */ > @@ -1779,9 +1779,6 @@ void xen_callback_vector(void) > alloc_intr_gate(XEN_HVM_EVTCHN_CALLBACK, > xen_hvm_callback_vector); > } > } > -#else > -void xen_callback_vector(void) {} > -#endif > > void __init xen_init_IRQ(void) > { This breaks on ARM because this like XEN_HVM_EVTCHN_CALLBACK, which are inside this ifdef, are actually X86 specific. I suspect that xen_callback_vector needs to be moved in to an arch specific file so that we can supply a suitably different implementation on ARM -- Stefano what do you think? Ian.