public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] s390: nmi: fix virtual-physical address confusion
@ 2023-02-15 16:02 Nico Boehr
  2023-02-15 16:02 ` [PATCH v1 1/1] " Nico Boehr
  0 siblings, 1 reply; 6+ messages in thread
From: Nico Boehr @ 2023-02-15 16:02 UTC (permalink / raw)
  To: borntraeger, frankja, imbrenda; +Cc: kvm, linux-s390

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-16 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 16:02 [PATCH v1 0/1] s390: nmi: fix virtual-physical address confusion Nico Boehr
2023-02-15 16:02 ` [PATCH v1 1/1] " Nico Boehr
2023-02-15 16:20   ` Claudio Imbrenda
2023-02-16  6:17   ` Alexander Gordeev
2023-02-16  9:38     ` Alexander Gordeev
2023-02-16 10:17       ` Janosch Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox