From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV3Op-00050W-5x for qemu-devel@nongnu.org; Mon, 09 Mar 2015 15:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV3Ok-0006Ld-Dg for qemu-devel@nongnu.org; Mon, 09 Mar 2015 15:31:35 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:39016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV3Ok-0006Kr-71 for qemu-devel@nongnu.org; Mon, 09 Mar 2015 15:31:30 -0400 Received: by lbiw7 with SMTP id w7so26661394lbi.6 for ; Mon, 09 Mar 2015 12:31:29 -0700 (PDT) Date: Mon, 9 Mar 2015 20:31:44 +0100 From: Christoffer Dall Message-ID: <20150309193144.GG20559@cbox> References: <1424880159-29348-1-git-send-email-alex.bennee@linaro.org> <1424880159-29348-7-git-send-email-alex.bennee@linaro.org> <20150302172212.GB10137@lvm> <874mq27222.fsf@linaro.org> <20150309125650.GA20559@cbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 5/6] target-arm/kvm64: fix save/restore of SPSR regs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: kvm-devel , Marc Zyngier , QEMU Developers , Alex =?iso-8859-1?Q?Benn=E9e?= , "kvmarm@lists.cs.columbia.edu" , arm-mail-list On Mon, Mar 09, 2015 at 10:31:19PM +0900, Peter Maydell wrote: > On 9 March 2015 at 21:56, Christoffer Dall wrote: > > this function, however, is not used only when migration, but should > > generally cover the case where you want to synchronize QEMU's state into > > KVM's state, right? So while it may not be harmful in currently > > supported use cases, is there ever a situation where (is_a64(env) && el > > == 0) and env->spsr != banked_spsr[el], and where env->spsr is > > out-of-date? > > If EL == 0 then you can't access any SPSR, so env->spsr is by > definition out of date. > ok, never mind then. -Christoffer