[kvm-unit-tests PATCH v3 0/6] s390x: Add test for STFLE interpretive execution (format-2)

Christoph Schlameuss
2026-04-21T11:45:46Z

Test the shadowing of format-2 facility list when running in VSIE.

The tests will skip the format 2 tests
* if running with unpatched kernels or qemu in G1 or G2
* if running on machines prior IBM z16 GA1 (where ASTFLEIE2 is not
available)

Cc: Janosch Frank <frankja@linux.ibm.com>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: "Nico Böhr" <nrb@linux.ibm.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Thomas Huth <thuth@redhat.com>
To: linux-s390@vger.kernel.org
Cc: kvm@vger.kernel.org

Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
---
The original series was started by Nina and finished by me.

---
Changes in v3:
- Remove unnecessary format loop in test_stfle_format_0() - formats are
already addressed explicitly
- Added patch to use sclp_feat_check directly for DIAG318
- Add no-stfle prefix to improve test log
- Move prefixes to main() to have prefixes in no-stfle checks

Changes in v2:
- Rework sclp_facilities_setup()
- Removed explicit manual padding from struct sclp_facilities

---
Christoph Schlameuss (4):
s390x: sclp: Remove unnecessary padding from struct sclp_facilities
s390x: sclp: Rework sclp_facilities_setup() for simpler control flow
s390x: sclp: Use sclp_feat_check directly to read DIAG318 feature bit
s390x: Add test for STFLE interpretive execution (format-2)

Nina Schoetterl-Glausch (2):
s390x: snippets: Add reset_guest() to lib
s390x: sclp: Add detection of alternate STFLE facilities

lib/s390x/sclp.c | 30 ++++++++++++++--------
lib/s390x/sclp.h | 8 +++---
lib/s390x/sie.c | 11 ++++++++
lib/s390x/sie.h | 1 +
lib/s390x/snippet.h | 6 +++++
s390x/spec_ex-sie.c | 10 ++------
s390x/stfle-sie.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++----
7 files changed, 111 insertions(+), 27 deletions(-)
---
base-commit: 6123bbbc271255d61873763b5fb9c4a69acfcfec
change-id: 20260202-vsie-stfle-fac-403e4467d8e2

Best regards,
--
Christoph Schlameuss <schlameuss@linux.ibm.com>