]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: selftests: Fix cmma selftest
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 23 Jun 2026 15:33:29 +0000 (17:33 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 24 Jun 2026 08:08:57 +0000 (10:08 +0200)
commit125a3d3fac51571b8ede0d0599618c6ecd975ea8
tree2cd99df1ce416f865e4fba67a76f16beec1188e0
parent6cfd47f91f6aa3bcf9fe15388be52feb4b180440
KVM: s390: selftests: Fix cmma selftest

The existing cmma selftest depended on the host allocating page tables
for all present memslots. Since the gmap rewrite, memory that is not
accessed by the guest might not have page tables allocated yet.

This caused the test to fail due to a mismatch in the assertion.

Fix by having the guest access also the second half of the test
memslot, thus guaranteeing that its page tables are present.

Fixes: e38c884df921 ("KVM: s390: Switch to new gmap")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260623153331.233784-9-imbrenda@linux.ibm.com>
tools/testing/selftests/kvm/s390/cmma_test.c