]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: only deliver service interrupt with payload
authorEric Farman <farman@linux.ibm.com>
Wed, 25 Feb 2026 15:20:13 +0000 (16:20 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Tue, 31 Mar 2026 08:36:51 +0000 (08:36 +0000)
commit2623c96f1172ae249b67de1dfc4eacebc8673876
treea2b8f4e1ccec94e41d7f5d6c6930d24d8b7da4cd
parent11439c4635edd669ae435eec308f4ab8a0804808
KVM: s390: only deliver service interrupt with payload

Routine __inject_service() may set both the SERVICE and SERVICE_EV
pending bits, and in the case of a pure service event the corresponding
trip through __deliver_service_ev() will clear the SERVICE_EV bit only.
This necessitates an additional trip through __deliver_service() for
the other pending interrupt bit, however it is possible that the
external interrupt parameters are zero and there is nothing to be
delivered to the guest.

To avoid sending empty data to the guest, let's only write out the SCLP
data when there is something for the guest to do, otherwise bail out.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/interrupt.c