From: Michael Ellerman Date: Fri, 22 Dec 2017 04:34:20 +0000 Subject: Re: [PATCH] KVM: PPC: Book3S: fix XIVE migration of pending interrupts Message-Id: <878tdvpeib.fsf@concordia.ellerman.id.au> List-Id: References: <20171212120204.6799-1-clg@kaod.org> <4be897d4-2d54-305b-8416-b32384de73a9@redhat.com> In-Reply-To: <4be897d4-2d54-305b-8416-b32384de73a9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Laurent Vivier , =?utf-8?Q?C=C3=A9dric?= Le Goater , kvm-ppc@vger.kernel.org, Paul Mackerras , Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Laurent Vivier writes: > On 12/12/2017 13:02, Cédric 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 >> --- >> >> Tested with a guest running iozone. >> >> arch/powerpc/kvm/book3s_xive.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > We really need this patch to fix VM migration on POWER9. > When will it be merged? Paul is away, so I'll merge it via the powerpc tree. I'll mark it: Fixes: 5af50993850a ("KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller") Cc: stable@vger.kernel.org # v4.12+ cheers