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

Christoph Schlameuss
2026-03-24T15:28:55Z

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 v2:
- Rework sclp_facilities_setup()
- Removed explicit manual padding from struct sclp_facilities
- Link to v1: https://lore.kernel.org/r/20260211-vsie-stfle-fac-v1-0-46c7aec5912b@linux.ibm.com

---
Christoph Schlameuss (2):
s390x: sclp: Remove unnecessary padding from struct sclp_facilities
s390x: sclp: Rework sclp_facilities_setup() for simpler control flow

Nina Schoetterl-Glausch (3):
s390x: snippets: Add reset_guest() to lib
s390x: sclp: Add detection of alternate STFLE facilities
s390x: Add test for STFLE interpretive execution (format-2)

lib/s390x/sclp.c | 30 +++++++++++-------
lib/s390x/sclp.h | 5 ++-
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 | 91 ++++++++++++++++++++++++++++++++++++++++++++++-------
7 files changed, 123 insertions(+), 31 deletions(-)
---
base-commit: 86e53277ac80dabb04f4fa5fa6a6cc7649392bdc
change-id: 20260202-vsie-stfle-fac-403e4467d8e2

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