]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: vsie: retry SIE instruction on host intercepts
authorEric Farman <farman@linux.ibm.com>
Fri, 1 Mar 2024 20:43:42 +0000 (21:43 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Thu, 4 Jul 2024 07:07:00 +0000 (09:07 +0200)
commit33a729a1770b5e03b9dbc7ecb065ae7997b7544d
tree23eb6c17ef343bcbe493adcca369e029b3ff4a7f
parent98f770389f46663b828c296e2e4220dd0018f7eb
KVM: s390: vsie: retry SIE instruction on host intercepts

It's possible that SIE exits for work that the host needs to perform
rather than something that is intended for the guest.

A Linux guest will ignore this intercept code since there is nothing
for it to do, but a more robust solution would rewind the PSW back to
the SIE instruction. This will transparently resume the guest once
the host completes its work, without the guest needing to process
what is effectively a NOP and re-issue SIE itself.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20240301204342.3217540-1-farman@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20240301204342.3217540-1-farman@linux.ibm.com>
arch/s390/kvm/vsie.c