[PATCH 0/6] KVM: PPC: Book3S HV interrupt fixes

Nicholas Piggin npiggin at gmail.com
Thu Mar 3 16:33:09 AEDT 2022


This series fixes up a bunch of little interrupt issues which were found
by inspection haven't seem to have caused big problems but possibly
could or could cause the occasional latency spike from a temporarily lost
interrupt.

The big thing is the xive context change. Currently we run an L2 with
its L1's xive OS context pushed. I'm proposing that we instead treat
that as an escalation similar to cede.

Thanks,
Nick

Nicholas Piggin (6):
  KVM: PPC: Book3S HV P9: Fix "lost kick" race
  KVM: PPC: Book3S HV P9: Inject pending xive interrupts at guest entry
  KVM: PPC: Book3S HV P9: Move cede logic out of XIVE escalation
    rearming
  KVM: PPC: Book3S HV P9: Split !nested case out from guest entry
  KVM: PPC: Book3S HV Nested: L2 must not run with L1 xive context
  KVM: PPC: Book3S HV Nested: L2 LPCR should inherit L1 LPES setting

 arch/powerpc/include/asm/kvm_ppc.h  |  4 +-
 arch/powerpc/kvm/book3s_hv.c        | 97 ++++++++++++++++++++++++-----
 arch/powerpc/kvm/book3s_hv_nested.c |  3 +-
 arch/powerpc/kvm/book3s_xive.c      | 11 ++--
 4 files changed, 90 insertions(+), 25 deletions(-)

-- 
2.23.0



More information about the Linuxppc-dev mailing list