From: Ian Campbell Subject: Re: [PATCH 2/5] xen: only expose start_info on architectures which have a PV boot path Date: Thu, 18 Jul 2013 15:31:20 +0100 Message-ID: <1374157880.26728.104.camel@kazak.uk.xensource.com> References: <1374153311.26728.86.camel@kazak.uk.xensource.com> <1374153340-29398-2-git-send-email-ian.campbell@citrix.com> <51E80BD802000078000E6045@nat28.tlf.novell.com> <1374155850.26728.96.camel@kazak.uk.xensource.com> <51E8121202000078000E60B1@nat28.tlf.novell.com> <1374156515.26728.97.camel@kazak.uk.xensource.com> <51E813E502000078000E60C5@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51E813E502000078000E60C5@nat28.tlf.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: "Keir(Xen.org)" , Tim Deegan , xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2013-07-18 at 15:12 +0100, Jan Beulich wrote: > >>> On 18.07.13 at 16:08, Ian Campbell wrote: > > On Thu, 2013-07-18 at 15:04 +0100, Jan Beulich wrote: > >> >>> On 18.07.13 at 15:57, Ian Campbell wrote: > >> > On Thu, 2013-07-18 at 14:38 +0100, Jan Beulich wrote: > >> >> >>> On 18.07.13 at 15:15, Ian Campbell wrote: > >> >> > --- a/xen/include/public/arch-x86/xen.h > >> >> > +++ b/xen/include/public/arch-x86/xen.h > >> >> > @@ -70,6 +70,9 @@ typedef unsigned long xen_pfn_t; > >> >> > #define PRI_xen_pfn "lx" > >> >> > #endif > >> >> > > >> >> > +#define XEN_HAVE_PV_GUEST_ENTRY 1 > >> >> > +#define COMPAT_HAVE_PV_GUEST_ENTRY 1 > >> >> > >> >> This ought to nevertheless have a XEN_ prefix, if it really is > >> >> needed at all (didn't spot yet where it's being consumed). > >> > > >> > It gets used in the autogenerated xen/include/compat/xen.h: > >> > ifdef COMPAT_HAVE_PV_GUEST_ENTRY > >> > struct compat_start_info { > >> > ... > >> > > >> > I think the COMPAT prefix is consistent with other aspects of this > >> > autogeneration (in particular the struct renaming xen_xxx -> compat_xxx) > >> > >> Yeah, except that these auto-generated pieces are part of the > >> public interface. I don't mind the definitions getting added, what > >> I do mind is them getting into the public headers. > > > > So where should they go instead? > > Perhaps into asm-x86/config.h, which already has a couple of > other COMPAT_* ones derived from public XEN_* ones. > > And perhaps the COMPAT_* definition should then also simply > use the XEN_* one as its expansion, rather than saying "1" > literally. Sounds good. I've noticed one other fixlet which I need (to 5/5) so I'll resend with that change too. Ian.