From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV0VE-0001BD-E3 for qemu-devel@nongnu.org; Mon, 09 Mar 2015 12:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV0VB-0001FZ-67 for qemu-devel@nongnu.org; Mon, 09 Mar 2015 12:26:00 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:59478 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV0VA-0001CP-Uy for qemu-devel@nongnu.org; Mon, 09 Mar 2015 12:25:57 -0400 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> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Mon, 09 Mar 2015 16:25:58 +0000 Message-ID: <87r3syb0ix.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 , Christoffer Dall , "kvmarm@lists.cs.columbia.edu" , arm-mail-list Peter Maydell writes: > 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. Indeed and in v2 the whole thing is wrapped in if (el > 0) > > -- PMM -- Alex Bennée