Skip to content

s390: nmi: fix virtual-physical address confusion

Nico Boehr kvm linux-s390 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

---
* remove unneeded cast (thanks Alexander)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1s390: nmi: fix virtual-physical address confusionarch/s390/kernel/nmi.c+1 -21 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchClaudio Imbrenda
1/1R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/1] s390: nmi: fix virtual-physical address confusion

v2:
---
* remove unneeded cast (thanks Alexander)

When a machine check is received while in SIE, it is reinjected into the guest in some cases. The respective code needs to access the sie_block, which is taken from the backed up R14.

Since reinjection only occurs while we are in SIE (i.e. between the labels sie_entry and sie_leave in entry.S and thus if CIF_MCCK_GUEST is set), the backed up R14 will always contain a physical address in s390_backup_mcck_info.

This currently works, because virtual and physical addresses are the same.

Add phys_to_virt() to resolve the virtual-physical confusion.

Nico Boehr (1):
s390: nmi: fix virtual-physical address confusion

 arch/s390/kernel/nmi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.39.1