Skip to content

KVM: s390: fix diag258 virtual-physical confusion

Nico Boehr kvm linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: s390: gaccess: check if guest address is in memslotarch/s390/kvm/gaccess.c arch/s390/kvm/gaccess.h+15 -62 replies
2/2KVM: s390: Change virtual to physical address access in diag 0x258 handlerarch/s390/kvm/diag.c+1 -12 replies

Reviews trailers per patch

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

PatchChristian BorntraegerHeiko Carstens
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] KVM: s390: fix diag258 virtual-physical confusion

The parameters for the diag 0x258 are real addresses, not virtual, but KVM was using them as virtual addresses. This only happened to work, since the Linux kernel as a guest used to have a 1:1 mapping for physical vs virtual addresses.

In addition, add handling for guest addresses outside memslots in access_guest_page() for architectural compliance and testability.

Michael Mueller (1):
KVM: s390: Change virtual to physical address access in diag 0x258
handler

Nico Boehr (1):
KVM: s390: gaccess: check if guest address is in memslot

 arch/s390/kvm/diag.c    |  2 +-
 arch/s390/kvm/gaccess.c |  7 +++++++
 arch/s390/kvm/gaccess.h | 14 ++++++++------
 3 files changed, 16 insertions(+), 7 deletions(-)
Signature · 1 line
2.46.0