From: Scott Wood Subject: Re: [v5][PATCH] KVM: PPC: Book3E HV: call RECONCILE_IRQ_STATE to sync the software state Date: Tue, 19 Nov 2013 12:32:48 -0600 Message-ID: <1384885968.1403.369.camel@snotra.buserror.net> References: <1382491608-4535-1-git-send-email-tiejun.chen@windriver.com> <5289D10D.5020506@windriver.com> <925AA130-F432-4367-BB55-AF833861AB60@suse.de> <1384818544.1403.337.camel@snotra.buserror.net> <8D17C407-7761-428B-9DA6-D5CF7A4C513B@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?UTF-8?Q?=E2=80=9Ctiejun=2Echen=E2=80=9D?= , "kvm@vger.kernel.org mailing list" , "" To: Alexander Graf Return-path: In-Reply-To: <8D17C407-7761-428B-9DA6-D5CF7A4C513B@suse.de> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, 2013-11-19 at 10:51 +0100, Alexander Graf wrote: >=20 > Am 19.11.2013 um 00:49 schrieb Scott Wood : >=20 > > On Mon, 2013-11-18 at 16:09 -0500, Alexander Graf wrote: > >> On 18.11.2013, at 03:34, =E2=80=9Ctiejun.chen=E2=80=9D wrote: > >>=20 > >>> On 10/23/2013 09:26 AM, Tiejun Chen wrote: > >>>> We enter with interrupts disabled in hardware, but we need to > >>>> call RECONCILE_IRQ_STATE anyway to ensure that the software stat= e > >>>> is kept in sync instead of calling hard_irq_disable() directly. > >>=20 > >> Why didn't this happen before? What is this patch fixing? > >=20 > > It's cleanup, not a fix. It makes things more consistent with othe= r > > 64-bit kernel entry code. >=20 > Could we please note this in the comit message so that whoever stumbl= es over the patch later knows that this is effectively a no-op (and jus= t prepones the lazy sync)? >=20 > Also, I'm still wary of lazy breakage in the pr code path, but I gues= s since it's completely untested today already it's ok to ignore. PR doesn't support 64-bit at all (e.g. it's all stw/lwz rather than som= e word-size abstraction). In the unlikely event that lazy EE is ever extended to 32-bit, then fixing up booke_interrupts.S would be just one part of the task of updating all the 32-bit asm (e.g. you'll find RECONCILE_IRQ_STATE in entry_64.S but not entry_32.S). -Scott