From: Tim Deegan Subject: Re: [PATCH 26/45] xen: arm64: add guest type to domain field. Date: Thu, 14 Feb 2013 13:56:39 +0000 Message-ID: <20130214135639.GU83752@ocelot.phlegethon.org> References: <1358956576.17440.60.camel@zakaz.uk.xensource.com> <1358956611-8432-26-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1358956611-8432-26-git-send-email-ian.campbell@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: Ian Campbell Cc: stefano.stabellini@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 15:56 +0000 on 23 Jan (1358956592), Ian Campbell wrote: > --- a/xen/include/asm-arm/domain.h > +++ b/xen/include/asm-arm/domain.h > @@ -35,8 +35,26 @@ struct hvm_domain > uint64_t params[HVM_NR_PARAMS]; > } __cacheline_aligned; > > +#ifdef CONFIG_ARM_64 > +enum domain_type { > + DOMAIN_PV32, > +#ifdef CONFIG_ARM_64 Nested ifdef CONFIG_ARM_64 here. Tim. > + DOMAIN_PV64, > +#endif > +}; > +#define is_pv32_domain(d) ((d)->arch.type == DOMAIN_PV32) > +#define is_pv64_domain(d) ((d)->arch.type == DOMAIN_PV64) > +#else > +#define is_pv32_domain(d) (1) > +#define is_pv64_domain(d) (0) > +#endif > + > struct arch_domain > { > +#ifdef CONFIG_ARM_64 > + enum domain_type type; > +#endif > + > struct p2m_domain p2m; > struct hvm_domain hvm_domain; > > -- > 1.7.2.5 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel