Skip to content

Commit e325ba2

Browse files
Nico Boehrfrankjaa
authored andcommitted
KVM: s390: selftests: add selftest for CMMA migration
Add a selftest for CMMA migration on s390. The tests cover: - interaction of dirty tracking and migration mode, see my recent patch "KVM: s390: disable migration mode when dirty tracking is disabled" [1], - several invalid calls of KVM_S390_GET_CMMA_BITS, for example: invalid flags, CMMA support off, with/without peeking - ensure KVM_S390_GET_CMMA_BITS initally reports all pages as dirty, - ensure KVM_S390_GET_CMMA_BITS properly skips over holes in memslots, but also non-dirty pages Note that without the patch at [1] and the small fix in this series, the selftests will fail. [1] https://lore.kernel.org/all/20230127140532.230651-2-nrb@linux.ibm.com/ Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-Id: <20230324145424.293889-3-nrb@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> [frankja@linux.ibm.com: squashed 20230606150510.671301-1-nrb@linux.ibm.com / "KVM: s390: selftests: CMMA: don't run if CMMA not supported"] Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
1 parent 285cff4 commit e325ba2

2 files changed

Lines changed: 701 additions & 0 deletions

File tree

tools/testing/selftests/kvm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ TEST_GEN_PROGS_s390x = s390x/memop
163163
TEST_GEN_PROGS_s390x += s390x/resets
164164
TEST_GEN_PROGS_s390x += s390x/sync_regs_test
165165
TEST_GEN_PROGS_s390x += s390x/tprot
166+
TEST_GEN_PROGS_s390x += s390x/cmma_test
166167
TEST_GEN_PROGS_s390x += demand_paging_test
167168
TEST_GEN_PROGS_s390x += dirty_log_test
168169
TEST_GEN_PROGS_s390x += kvm_create_max_vcpus

0 commit comments

Comments
 (0)