Skip to content

KVM / 64s interrupt handling changes

Nicholas Piggin kvm-ppc linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7KVM: PPC: Book3S 64: move KVM interrupt entry to a common entry pointarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/Makefile arch/powerpc/kvm/book3s_64_entry.S +1 more+42 -160 replies
2/7KVM: PPC: Book3S 64: Move GUEST_MODE_SKIP test into KVMarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_64_entry.S+58 -610 replies
3/7KVM: PPC: Book3S 64: add hcall interrupt handlerarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_64_entry.S+8 -40 replies
4/7KVM: PPC: Book3S 64: Move hcall early register setup to KVMarch/powerpc/include/asm/exception-64s.h arch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_64_entry.S+44 -411 reply
5/7KVM: PPC: Book3S 64: Move interrupt early register setup to KVMarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_64_entry.S+71 -1101 reply
6/7KVM: PPC: Book3S 64: move bad_host_intr check to HV handlerarch/powerpc/kvm/book3s_64_entry.S arch/powerpc/kvm/book3s_hv_rmhandlers.S arch/powerpc/kvm/book3s_segment.S+6 -50 replies
7/7KVM: PPC: Book3S 64: Minimise hcall handler calling convention differencesarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kvm/book3s_64_entry.S+45 -370 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchPaul MackerrasDaniel AxtensFabiano RosasAlexey Kardashevskiy
1/7A-b R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/7] KVM / 64s interrupt handling changes

This is the second batch of patches split from the big KVM in C series.

This implements all the changes to exception-64s.S required for the subsequent C conversion. I think they stand on their own as good patches.

The main things done here are to make the code more amenable to adding different KVM interrupt handlers (rather than just PR and HV), and moving a lot of KVM specific code out of exceptions-64s.S and moving it to arch/powerpc/kvm/book3s_64_entry.S. Calling convention between those files is changed to mostly match the exception-64s.S "GEN_INT_ENTRY" convention, so that's a change but now you only have to remember that one for both cases (either branching to KVM handler or continuing to GEN_COMMON handler).

This is tested with HV KVM, nested HV under radix L0+L1, and nested PR KVM under HPT guest. All seems to be working okay.

Thanks,
Nick

Nicholas Piggin (7):
KVM: PPC: Book3S 64: move KVM interrupt entry to a common entry point
KVM: PPC: Book3S 64: Move GUEST_MODE_SKIP test into KVM
KVM: PPC: Book3S 64: add hcall interrupt handler
KVM: PPC: Book3S 64: Move hcall early register setup to KVM
KVM: PPC: Book3S 64: Move interrupt early register setup to KVM
KVM: PPC: Book3S 64: move bad_host_intr check to HV handler
KVM: PPC: Book3S 64: Minimise hcall handler calling convention
differences

 arch/powerpc/include/asm/exception-64s.h |  13 ++
 arch/powerpc/kernel/exceptions-64s.S     | 250 ++++-------------------
 arch/powerpc/kvm/Makefile                |   3 +
 arch/powerpc/kvm/book3s_64_entry.S       | 158 ++++++++++++++
 arch/powerpc/kvm/book3s_hv_rmhandlers.S  |  13 +-
 arch/powerpc/kvm/book3s_segment.S        |   3 +
 6 files changed, 220 insertions(+), 220 deletions(-)
 create mode 100644 arch/powerpc/kvm/book3s_64_entry.S
Signature · 1 line
2.23.0