From: Ian Campbell Subject: Re: [PATCH] xen/arm: Save/Restore GICH_APR register Date: Thu, 11 Apr 2013 14:29:21 +0100 Message-ID: <1365686961.8036.137.camel@zakaz.uk.xensource.com> References: <1365107797-5701-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Julien Grall , "xen-arm@lists.xen.org" , "xen-devel@lists.xensource.com" , "Tim.Deegan@citrix.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-04-05 at 11:52 +0100, Stefano Stabellini wrote: > On Thu, 4 Apr 2013, Julien Grall wrote: > > Linux uses GICC_CTLR.EOImodeNS set to 0, which means both priority drop > > and deactivate interrupt functionality are made when something is > > written in GICC_EOIR. > > > > As the ARM manual specifies: "having an active interrupt in the List registers > > with a priority that is not set in the corresponding Active Priorities register" > > when GICV_CTLR.EOImode (ie GICC_CTLR.EOImodeNS in the guest context) result > > in unpredicable behavior, we need to save/restore GICH_APR. > > > > Signed-off-by: Julien Grall > > Nice catch!! Indeed! I don't suppose you had a glance through the docs for other gic registers we've missed? > Acked-by: Stefano Stabellini me too + Applied.