acrn-kernel/arch/s390/kvm
Heiko Carstens a759972d25 KVM: s390: fix sthyi error handling
[ Upstream commit 0c02cc576e ]

Commit 9fb6c9b3fe ("s390/sthyi: add cache to store hypervisor info")
added cache handling for store hypervisor info. This also changed the
possible return code for sthyi_fill().

Instead of only returning a condition code like the sthyi instruction would
do, it can now also return a negative error value (-ENOMEM). handle_styhi()
was not changed accordingly. In case of an error, the negative error value
would incorrectly injected into the guest PSW.

Add proper error handling to prevent this, and update the comment which
describes the possible return values of sthyi_fill().

Fixes: 9fb6c9b3fe ("s390/sthyi: add cache to store hypervisor info")
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20230727182939.2050744-1-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 12:08:11 +02:00
..
Kconfig
Makefile
diag.c KVM: s390/diag: fix racy access of physical cpu number in diag 9c handler 2023-07-19 16:21:57 +02:00
gaccess.c
gaccess.h
guestdbg.c
intercept.c KVM: s390: fix sthyi error handling 2023-08-11 12:08:11 +02:00
interrupt.c
irq.h
kvm-s390.c
kvm-s390.h
pci.c
pci.h
priv.c
pv.c
sigp.c
trace-s390.h
trace.h
vsie.c KVM: s390: vsie: fix the length of APCB bitmap 2023-07-19 16:21:57 +02:00