From: Ian Campbell Subject: Re: [PATCH 0/5] xen: arm: fix guest register access bug Date: Wed, 19 Dec 2012 14:07:22 +0000 Message-ID: <1355926042.14620.416.camel@zakaz.uk.xensource.com> References: <1355849351.14620.274.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1355849351.14620.274.camel@zakaz.uk.xensource.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: xen-devel Cc: "Tim (Xen.org)" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2012-12-18 at 16:49 +0000, Ian Campbell wrote: > All the places where we currently access guest registers are subtly > broken, they always access the usr copy of a banked register regardless > of the guest VCPU mode. Luckily because fiq mode isn't used much this > mostly affects the SP and LR registers which are not typically used in > mmio instructions (which is most of the reason for this kind of > emulation). However the effect of hitting the bug is going to be some > pretty weird behaviour! > > I've also included, mostly because they were in my branch and rebasing > things over them is a faff, some patches to clean up the tabs and line > lengths in entry.S. Applied 1,2 & 4 w/ Stefano's ACK, thanks. Will redo #3 as discussed and repost. Ian.