Skip to content

s390/kvm: Handle guest-related program interrupts in KVM

Claudio Imbrenda kvm linux-s390 lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 4 repliesIn review
  2. v311 patches 7 repliesSuperseded

Changes in v4 from the cover letter

* patch 5: move check for primary ASCE from the interrupt handler to the handlers of the specific faults where we expect the ASCE indication to be meaningful.
* patch 6: remove enabled_gmap from struct kvm_cpu_arch, since it is now unused.
* picked up some R-Bs from Heiko

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11s390/entry: Remove __GMAP_ASCE and use _PIF_GUEST_FAULT againarch/s390/include/asm/ptrace.h arch/s390/kernel/asm-offsets.c arch/s390/kernel/entry.S +1 more+18 -180 replies
2/11s390/kvm: Remove kvm_arch_fault_in_page()arch/s390/kvm/intercept.c arch/s390/kvm/kvm-s390.c arch/s390/kvm/kvm-s390.h+3 -200 replies
3/11s390/mm/gmap: Refactor gmap_fault() and add support for pfaultarch/s390/mm/gmap.c+100 -190 replies
4/11s390/mm/gmap: Fix __gmap_fault() return codearch/s390/mm/gmap.c+5 -60 replies
5/11s390/mm/fault: Handle guest-related program interrupts in KVMarch/s390/include/asm/kvm_host.h arch/s390/include/asm/processor.h arch/s390/kernel/entry.S +5 more+135 -1561 reply
6/11s390/kvm: Stop using gmap_{en,dis}able()arch/s390/include/asm/kvm_host.h arch/s390/kvm/kvm-s390.c arch/s390/kvm/vsie.c+2 -110 replies
7/11s390/mm/gmap: Remove gmap_{en,dis}able()arch/s390/include/asm/gmap.h arch/s390/mm/gmap.c+0 -341 reply
8/11s390: Remove gmap pointer from lowcorearch/s390/include/asm/lowcore.h arch/s390/kernel/asm-offsets.c+1 -30 replies
9/11s390/mm: Simplify get_fault_type()arch/s390/mm/fault.c+2 -90 replies
10/11s390/mm: Get rid of fault type switch statementsarch/s390/mm/fault.c+22 -480 replies
11/11s390/mm: Convert to LOCK_MM_AND_FIND_VMAarch/s390/Kconfig arch/s390/mm/fault.c+3 -111 reply

Reviews trailers per patch

10 of 11 patches have a Reviewed-by or Acked-by.

PatchJanosch FrankHeiko CarstensAlexander GordeevSteffen EidenGerald Schaefer
1/11A-b R-b
2/11R-b
3/11R-b A-b
4/11R-b A-b
5/11
6/11R-b A-b
7/11R-b R-b
8/11R-b R-b
9/11R-b
10/11R-b
11/11R-b R-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 5 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/11] s390/kvm: Handle guest-related program interrupts in KVM

This patchseries moves the handling of host program interrupts that happen while a KVM guest is running into KVM itself.

All program interrupts that happen in the host while a KVM guest is running are due to DAT exceptions. It is cleaner and more maintainable to have KVM handle those.

As a side effect, some more cleanups is also possible.

Moreover, this series serves as a foundation for an upcoming series that will further move as much s390 KVM memory managament as possible into KVM itself, and away from the rest of the kernel.

v3->v4:
* patch 5: move check for primary ASCE from the interrupt handler to the handlers of the specific faults where we expect the ASCE indication to be meaningful.
* patch 6: remove enabled_gmap from struct kvm_cpu_arch, since it is now unused.
* picked up some R-Bs from Heiko

Claudio Imbrenda (8):
s390/entry: Remove __GMAP_ASCE and use _PIF_GUEST_FAULT again s390/kvm: Remove kvm_arch_fault_in_page() s390/mm/gmap: Refactor gmap_fault() and add support for pfault s390/mm/gmap: Fix __gmap_fault() return code s390/mm/fault: Handle guest-related program interrupts in KVM s390/kvm: Stop using gmap_{en,dis}able() s390/mm/gmap: Remove gmap_{en,dis}able()
s390: Remove gmap pointer from lowcore

Heiko Carstens (3):
s390/mm: Simplify get_fault_type() s390/mm: Get rid of fault type switch statements s390/mm: Convert to LOCK_MM_AND_FIND_VMA

 arch/s390/Kconfig                 |   1 +
 arch/s390/include/asm/gmap.h      |   3 -
 arch/s390/include/asm/kvm_host.h  |   5 +-
 arch/s390/include/asm/lowcore.h   |   3 +-
 arch/s390/include/asm/processor.h |   5 +-
 arch/s390/include/asm/ptrace.h    |   2 +
 arch/s390/kernel/asm-offsets.c    |   3 -
 arch/s390/kernel/entry.S          |  44 ++-----
 arch/s390/kernel/traps.c          |  23 +++-
 arch/s390/kvm/intercept.c         |   4 +-
 arch/s390/kvm/kvm-s390.c          | 142 +++++++++++++++-------
 arch/s390/kvm/kvm-s390.h          |   8 +-
 arch/s390/kvm/vsie.c              |  17 ++-
 arch/s390/mm/fault.c              | 195 +++++-------------------------
 arch/s390/mm/gmap.c               | 151 +++++++++++++++--------
 15 files changed, 281 insertions(+), 325 deletions(-)
Signature · 1 line
2.47.0