From: Ian Campbell Subject: Re: [PATCH for-4.5 v2 1/2] xen: refactor physical address space compression support into common code Date: Fri, 12 Sep 2014 16:35:47 +0100 Message-ID: <1410536147.27902.13.camel@kazak.uk.xensource.com> References: <1410534866.27902.12.camel@kazak.uk.xensource.com> <1410534923-17209-1-git-send-email-ian.campbell@citrix.com> <54132E47020000780003493F@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54132E47020000780003493F@mail.emea.novell.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: Jan Beulich Cc: stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, Roy Franz , Fu Wei List-Id: xen-devel@lists.xenproject.org On Fri, 2014-09-12 at 16:32 +0100, Jan Beulich wrote: > >>> On 12.09.14 at 17:15, wrote: > > The "pdx compression" functionality will be useful on ARM as well. > > > > Move the code to common code+header and introduce HAS_PDX to control when it > > is > > built. L2_PAGETABLE_SHIFT is x86 specific, so introduce PDX_GROUP_SHIFT to > > abstract it out. > > > > ARM has no need for superpage compression (yet?) and lacks SUPERPAGE_SHIFT > > so > > those functions (spage_to_mfn et al) are not moved. > > > > No affect on x86 and no change for ARM (yet). > > > > Signed-off-by: Ian Campbell > > Acked-by: Jan Beulich > > --- > > v2: > > - Correct closing guard comment in pdx.h > > Hmm, looking at it ... > > > --- /dev/null > > +++ b/xen/include/xen/pdx.h > > @@ -0,0 +1,47 @@ > > +#ifndef __XEN_PDX_H__ > > +#define __XEN_PDX_H__ > > + > > +#ifdef HAS_PDX > > ... is it HAS_PDX ... > > > +#endif /* HAVE_PDX */ > > ... or HAVE_PDX? HAS_PDX :-( I've fixed this locally. Ian.