From: "Jan Beulich" 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:32:55 +0100 Message-ID: <54132E47020000780003493F@mail.emea.novell.com> References: <1410534866.27902.12.camel@kazak.uk.xensource.com> <1410534923-17209-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: <1410534923-17209-1-git-send-email-ian.campbell@citrix.com> Content-Disposition: inline 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: 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 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? Jan > +#endif /* __XEN_PDX_H__ */ > + > +/* > + * Local variables: > + * mode: C > + * c-file-style: "BSD" > + * c-basic-offset: 4 > + * indent-tabs-mode: nil > + * End: > + */