From: Ian Campbell Subject: Re: [PATCH V2 27/46] xen: arm: arm64 trap handling. Date: Thu, 21 Feb 2013 15:25:24 +0000 Message-ID: <1361460324.26546.62.camel@zakaz.uk.xensource.com> References: <1360860465.20449.472.camel@zakaz.uk.xensource.com> <1360860480-9245-27-git-send-email-ian.campbell@citrix.com> <20130221151023.GT24051@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130221151023.GT24051@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: Stefano Stabellini , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-02-21 at 15:10 +0000, Tim Deegan wrote: > At 16:47 +0000 on 14 Feb (1360860461), Ian Campbell wrote: > > Signed-off-by: Ian Campbell > > --- > > v2: Call leave_hypervisor_tail on exit back to guest, disable interrupts while > > restoring state. > > You don't seem to have addressed my other comments on v1: I've got them in v3, I noted that I hadn't addresses you comment on this patch in the #0/46. > > --- a/xen/arch/arm/arm64/Makefile > > +++ b/xen/arch/arm/arm64/Makefile > > @@ -1,5 +1,7 @@ > > subdir-y += lib > > > > +obj-y += entry.o > > obj-y += mode_switch.o > > > > +obj-y += traps.o > > obj-y += domain.o > > Alphabetical order, please. I kept this the same order as arm32/Makefile on purpose. > > +#define __L2(_x) (((_x) & 0x00000002) ? 1 : 0) > > +#define __L4(_x) (((_x) & 0x0000000c) ? ( 2 + __L2( (_x)>> 2)) : __L2( _x)) > > +#define __L8(_x) (((_x) & 0x000000f0) ? ( 4 + __L4( (_x)>> 4)) : __L4( _x)) > > +#define __L16(_x) (((_x) & 0x0000ff00) ? ( 8 + __L8( (_x)>> 8)) : __L8( _x)) > > +#define LOG_2(_x) (((_x) & 0xffff0000) ? (16 + __L16((_x)>>16)) : __L16(_x)) > > This is now replicated in three places. Maybe it should live in, say, > xen/bitops.h? [...] > Keep the array type? uint8_t[] would do, or define up something the > right size. I've got both of these in my tree already for v3. Ian.