mbox series

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

Message ID 20220303053315.1056880-1-npiggin@gmail.com (mailing list archive)
Headers show
Series KVM: PPC: Book3S HV interrupt fixes | expand

Message

Nicholas Piggin March 3, 2022, 5:33 a.m. UTC
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(-)

Comments

Michael Ellerman May 24, 2022, 10:51 a.m. UTC | #1
On Thu, 3 Mar 2022 15:33:09 +1000, Nicholas Piggin wrote:
> 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.
> 
> [...]

Patches 2-6 applied to powerpc/topic/ppc-kvm.

[2/6] KVM: PPC: Book3S HV P9: Inject pending xive interrupts at guest entry
      https://git.kernel.org/powerpc/c/026728dc5d41f830e8194fe01e432dd4eb9b3d9a
[3/6] KVM: PPC: Book3S HV P9: Move cede logic out of XIVE escalation rearming
      https://git.kernel.org/powerpc/c/ad5ace91c55e7bd16813617f67bcb7619d51a295
[4/6] KVM: PPC: Book3S HV P9: Split !nested case out from guest entry
      https://git.kernel.org/powerpc/c/42b4a2b347b09e7ee4c86f7121e3b45214b63e69
[5/6] KVM: PPC: Book3S HV Nested: L2 must not run with L1 xive context
      https://git.kernel.org/powerpc/c/11681b79b1ab52e7625844d7ce52c4d5201a43b2
[6/6] KVM: PPC: Book3S HV Nested: L2 LPCR should inherit L1 LPES setting
      https://git.kernel.org/powerpc/c/2852ebfa10afdcefff35ec72c8da97141df9845c

cheers