Re: [PATCH v2 2/2] KVM: s390: selftests: Add a test for nested guests in ESA mode

From: Christian Borntraeger

Date: Fri Nov 27 2026 - 02:56:28 EST


Am 26.11.26 um 15:37 schrieb Claudio Imbrenda:
On Wed, 25 Nov 2026 17:56:03 +0100
Yvan Janssens <yvanj@xxxxxxxxxx> wrote:

Run a nested guest from a state description without the z/Architecture
flag, with KVM_CAP_S390_VSIE_ESAMODE enabled, and let it execute STORE
FACILITY LIST EXTENDED twice. vsie intercepts the first one of every SIE
entry to shadow the facility list guest 2 designates and then has the
instruction repeated.

The test checks that the second doubleword of the PSW field, which is not
part of an ESA/390 PSW, comes back unchanged, that the PSW points behind
the last instruction, and that the first instruction stored the
designated list. What the second instruction stored is printed for
diagnosis.

The test is skipped without the capability, without interpretive
execution for the guest (SIEF2) and without facility 7 in the guest's
model.

which KVM ioctls are you testing here?

are you sure that this is the right place for this test? my impression
is that this would be done more cleanly as a kvm-unit-test

We are explicitely testing 2 levels of SIE here and one level is a private
"hypervisor". I think this would require some changes in kvm-unit-test/snippets.
So in general I an fine with taking that via selftests.

Janosch, any concerns and opinions?