From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3z35kC602DzF0Cc for ; Fri, 22 Dec 2017 22:24:03 +1100 (AEDT) In-Reply-To: <20171212120204.6799-1-clg@kaod.org> To: =?utf-8?q?C=C3=A9dric_Le_Goater?= , kvm-ppc@vger.kernel.org, Paul Mackerras , Benjamin Herrenschmidt From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: Re: KVM: PPC: Book3S: fix XIVE migration of pending interrupts Message-Id: <3z35kC53mWz9s7n@ozlabs.org> Date: Fri, 22 Dec 2017 22:24:03 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2017-12-12 at 12:02:04 UTC, =?utf-8?q?C=C3=A9dric_Le_Goater?= wrote: > When restoring a pending interrupt, we are setting the Q bit to force > a retrigger in xive_finish_unmask(). But we also need to force an EOI > in this case to reach the same initial state : P=1, Q=0. > > This can be done by not setting 'old_p' for pending interrupts which > will inform xive_finish_unmask() that an EOI needs to be sent. > > Suggested-by: Benjamin Herrenschmidt > Signed-off-by: Cédric Le Goater > Reviewed-by: Laurent Vivier > Tested-by: Laurent Vivier Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/dc1c4165d189350cb51bdd3057deb6 cheers