From: "Jan Beulich" Subject: Re: [PATCH 07/12] xen: allow tmem to be disabled on platforms which do not support it (ARM) Date: Fri, 20 Jan 2012 12:51:17 +0000 Message-ID: <4F197155020000780006DF47@nat28.tlf.novell.com> References: <1327061025.30054.21.camel@zakaz.uk.xensource.com> <1327061198-29854-7-git-send-email-ian.campbell@citrix.com> <1327062518.30054.26.camel@zakaz.uk.xensource.com> <4F196DDC020000780006DEEC@nat28.tlf.novell.com> <1327063164.30054.32.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327063164.30054.32.camel@zakaz.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 20.01.12 at 13:39, Ian Campbell wrote: > On Fri, 2012-01-20 at 12:36 +0000, Jan Beulich wrote: >> >>> On 20.01.12 at 13:28, Ian Campbell wrote: >> > On Fri, 2012-01-20 at 12:19 +0000, Stefano Stabellini wrote: >> >> Why do we need this? >> >> I though that tmem compiled OK on ARM. >> > >> > But it can't possibly work, as evidenced by the missing symbol in >> > dummy.S! There is no point in compiling something which cannot work. >> >> But introducing random HAS_xyz variables isn't that pretty either. The >> more that the term 'has' seems wrong to me in this case. > > yeah, I was copy the other similar variables. Probably ENABLE would be > better in this case. > >> By just not wiring up the hypercall you could achieve the same effect. > > Really? I'd still need to ifdef out the hypercall body or I'd get > unresolved symbols, wouldn't I? Perhaps, but stubbing out dead symbols in a new port seems prettier to me than cluttering common code. Jan