From: Wei Liu Subject: Re: [PATCH v3 06/32] libxc: make arch_setup_boot{init/late} xc_dom_arch hooks Date: Tue, 28 Jul 2015 12:22:32 +0100 Message-ID: <20150728112232.GK5111@zion.uk.xensource.com> References: <1435923310-9019-1-git-send-email-roger.pau@citrix.com> <1435923310-9019-7-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZK2xx-00051D-VA for xen-devel@lists.xenproject.org; Tue, 28 Jul 2015 11:22:38 +0000 Content-Disposition: inline In-Reply-To: <1435923310-9019-7-git-send-email-roger.pau@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: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, Jul 03, 2015 at 01:34:44PM +0200, Roger Pau Monne wrote: > This should not introduce any functional change. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu Acked-by: Wei Liu > --- > +/* ---------------------------------------------------------------------= --- */ > + > +static struct xc_dom_arch xc_dom_32_pae =3D { > + .guest_type =3D "xen-3.0-x86_32p", > + .native_protocol =3D XEN_IO_PROTO_ABI_X86_32, > + .page_shift =3D PAGE_SHIFT_X86, > + .sizeof_pfn =3D 4, > + .alloc_magic_pages =3D alloc_magic_pages, > + .count_pgtables =3D count_pgtables_x86_32_pae, > + .setup_pgtables =3D setup_pgtables_x86_32_pae, > + .start_info =3D start_info_x86_32, > + .shared_info =3D shared_info_x86_32, > + .vcpu =3D vcpu_x86_32, > + .meminit =3D meminit_pv, > + .bootearly =3D bootearly, > + .bootlate =3D bootlate_pv, > +}; > + > +static struct xc_dom_arch xc_dom_64 =3D { > + .guest_type =3D "xen-3.0-x86_64", > + .native_protocol =3D XEN_IO_PROTO_ABI_X86_64, > + .page_shift =3D PAGE_SHIFT_X86, > + .sizeof_pfn =3D 8, > + .alloc_magic_pages =3D alloc_magic_pages, > + .count_pgtables =3D count_pgtables_x86_64, > + .setup_pgtables =3D setup_pgtables_x86_64, > + .start_info =3D start_info_x86_64, > + .shared_info =3D shared_info_x86_64, > + .vcpu =3D vcpu_x86_64, > + .meminit =3D meminit_pv, > + .bootearly =3D bootearly, > + .bootlate =3D bootlate_pv, > +}; > + One thing I notice in this series is that these hunks are moved repeatedly in patches. Might be worth moving them right to the end / only adding new functions before them to reduce patch size. Just an observation. Not a blocker for this series though. If it turns out hard to do just ignore that comment. > +static void __init register_arch_hooks(void) > +{ > + xc_dom_register_arch_hooks(&xc_dom_32_pae); > + xc_dom_register_arch_hooks(&xc_dom_64); > +} > + > int xc_dom_feature_translated(struct xc_dom_image *dom) > { > /* Guests running inside HVM containers are always auto-translated. = */ > -- = > 1.9.5 (Apple Git-50.3)