Re: [PATCH v2 1/2] KVM: s390: vsie: Rewind the PSW of ESA mode guests in the right format

From: Janosch Frank

Date: Thu Nov 26 2026 - 07:36:13 EST


On 11/25/26 5:56 PM, Yvan Janssens wrote:
ESA-mode guests in vsie have existed since commit b0ad874d9852 ("KVM:
s390: vsie: Allow non-zarch guests"); they use the 8-byte short PSW -
the mask and instruction address share one doubleword.

vsie's PSW rewind originally still changed the second doubleword, which
is unused in ESA mode, so the instruction is skipped instead of
repeated. The visible effect is that the first STFLE after entering SIE
does nothing in a nested guest.

This patch adds a vsie-specific rewind function that handles both
formats; no short-PSW type is introduced - for ESA guests mask and
address are written into the mask field.

Fixes: b0ad874d9852 ("KVM: s390: vsie: Allow non-zarch guests")
Cc: stable@xxxxxxxxxxxxxxx # 7.1+
Signed-off-by: Yvan Janssens <yvanj@xxxxxxxxxx>
Reviewed-by: Janosch Frank <frankja@xxxxxxxxxxxxx>