Skip to content

s390/kvm: fix MVPG when in VSIE

Claudio Imbrenda kvm linux-s390 lkml stable 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 6 repliesIn review
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches9 repliesSuperseded
v14 patches13 repliesSuperseded

Changes in v5 from the cover letter

* split kvm_s390_logical_to_effective so it can be reused for vSIE
* fix existing comments and add some more comments
* use the new split _kvm_s390_logical_to_effective in vsie_handle_mvpg

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/kvm: split kvm_s390_logical_to_effectivearch/s390/kvm/gaccess.h+24 -51 reply
2/3s390/kvm: extend kvm_s390_shadow_fault to return entry pointerarch/s390/kvm/gaccess.c arch/s390/kvm/gaccess.h arch/s390/kvm/vsie.c+34 -101 reply
3/3s390/kvm: VSIE: correctly handle MVPG when in VSIEarch/s390/kvm/vsie.c+93 -51 reply

Reviews trailers per patch

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

PatchJanosch FrankDavid HildenbrandChristian Borntraeger
1/3R-b
2/3R-b R-b R-b
3/3A-b R-b A-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 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/3] s390/kvm: fix MVPG when in VSIE

The current handling of the MVPG instruction when executed in a nested guest is wrong, and can lead to the nested guest hanging.

This patchset fixes the behaviour to be more architecturally correct, and fixes the hangs observed.

v4->v5
* split kvm_s390_logical_to_effective so it can be reused for vSIE
* fix existing comments and add some more comments
* use the new split _kvm_s390_logical_to_effective in vsie_handle_mvpg

v3->v4
* added PEI_ prefix to DAT_PROT and NOT_PTE macros
* added small comment to explain what they are about

v2->v3
* improved some comments
* improved some variable and parameter names for increased readability
* fixed missing handling of page faults in the MVPG handler
* small readability improvements

v1->v2
* complete rewrite

Claudio Imbrenda (3):
s390/kvm: split kvm_s390_logical_to_effective s390/kvm: extend kvm_s390_shadow_fault to return entry pointer s390/kvm: VSIE: correctly handle MVPG when in VSIE

 arch/s390/kvm/gaccess.c |  30 ++++++++++--
 arch/s390/kvm/gaccess.h |  35 ++++++++++---
 arch/s390/kvm/vsie.c    | 106 ++++++++++++++++++++++++++++++++++++----
 3 files changed, 151 insertions(+), 20 deletions(-)
Signature · 1 line
2.26.2