Thread (11 messages) 11 messages, 6 authors, 2017-12-22

Re: [PATCH] KVM: PPC: Book3S: fix XIVE migration of pending interrupts

From: Laurent Vivier <lvivier@redhat.com>
Date: 2017-12-20 08:24:59

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 <benh@kernel.crashing.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---

 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?

Thanks,
Laurent
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help