From: Ian Campbell Subject: Re: [PATCH] xen/arm: disable interrupts on return_to_hypervisor Date: Thu, 6 Dec 2012 10:19:48 +0000 Message-ID: <1354789188.17165.73.camel@zakaz.uk.xensource.com> References: <1354732666-3132-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1354732666-3132-1-git-send-email-stefano.stabellini@eu.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-12-05 at 18:37 +0000, Stefano Stabellini wrote: > At the moment it is possible to reach return_to_hypervisor with > interrupts enabled (it happens all the times when we are actually going > back to hypervisor mode, when we don't take the return_to_guest path). > > If that happens we risk loosing the content of ELR_hyp: if we receive an > interrupt right after restoring ELR_hyp, once we come back we'll have a > different value in ELR_hyp and the original is lost. > > In order to make the return_to_hypervisor path safe, we disable > interrupts before restoring any registers. > > Signed-off-by: Stefano Stabellini Acked + applied, thanks.