From: Ian Campbell Subject: Re: [PATCH 01/10] xen: xenbus: quirk uses x86 specific cpuid Date: Wed, 17 Oct 2012 09:41:24 +0100 Message-ID: <1350463284.2460.20.camel@zakaz.uk.xensource.com> References: <1350463138.2460.19.camel@zakaz.uk.xensource.com> <1350463157-5068-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1350463157-5068-1-git-send-email-ian.campbell@citrix.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: Konrad Rzeszutek Wilk Cc: "xen-devel@lists.xen.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org I botched the LKML address in my git send-email cmdline so these didn't go there. This is Xen specific enough that I don't think it is worth resending/spamming you guys with a repeat to fix that. On Wed, 2012-10-17 at 09:39 +0100, Ian Campbell wrote: > This breaks on ARM. This quirk is not necessary on ARM because no > hypervisors of that vintage exist for that architecture (port is too > new). > > Signed-off-by: Ian Campbell > --- > drivers/xen/xenbus/xenbus_xs.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c > index 48220e1..b46ad11 100644 > --- a/drivers/xen/xenbus/xenbus_xs.c > +++ b/drivers/xen/xenbus/xenbus_xs.c > @@ -619,6 +619,8 @@ static struct xenbus_watch *find_watch(const char *token) > > return NULL; > } > + > +#ifdef CONFIG_X86 > /* > * Certain older XenBus toolstack cannot handle reading values that are > * not populated. Some Xen 3.4 installation are incapable of doing this > @@ -637,6 +639,10 @@ static bool xen_strict_xenbus_quirk() > return false; > > } > +#else > +static bool xen_strict_xenbus_quirk(void) { return false; } > +#endif > + > static void xs_reset_watches(void) > { > int err, supported = 0;