public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3 0/2] s390x: add migration test for CMM
@ 2022-05-12 13:42 Nico Boehr
  2022-05-12 13:42 ` [kvm-unit-tests PATCH v3 1/2] lib: s390x: add header for CMM related defines Nico Boehr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nico Boehr @ 2022-05-12 13:42 UTC (permalink / raw)
  To: kvm, linux-s390; +Cc: frankja, imbrenda, thuth

v2->v3:
---
* remove unneeded include asm-offsets.h (Thanks Claudio)
* change prefix of test to match filename (migration-cmm instead of
  cmm-migration)

v1->v2:
---
* Rename cmm-migration.c to migration-cmm.c (Thanks Janosch)
* Replace switch-case with unrolled loop (Thanks Claudio)
* Migrate even when ESSA is not available so we don't hang forever

Upon migration, we expect the CMM page states to be preserved. Add a test which
checks for that.

The new test gets a new file so the existing cmm test can still run when the
prerequisites for running migration tests aren't given (netcat). Therefore, move
some definitions to a common header to be able to re-use them.

Nico Boehr (2):
  lib: s390x: add header for CMM related defines
  s390x: add cmm migration test

 lib/s390x/asm/cmm.h   | 50 ++++++++++++++++++++++++++++
 s390x/Makefile        |  1 +
 s390x/cmm.c           | 25 ++------------
 s390x/migration-cmm.c | 77 +++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg   |  4 +++
 5 files changed, 135 insertions(+), 22 deletions(-)
 create mode 100644 lib/s390x/asm/cmm.h
 create mode 100644 s390x/migration-cmm.c

-- 
2.31.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-12 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-12 13:42 [kvm-unit-tests PATCH v3 0/2] s390x: add migration test for CMM Nico Boehr
2022-05-12 13:42 ` [kvm-unit-tests PATCH v3 1/2] lib: s390x: add header for CMM related defines Nico Boehr
2022-05-12 13:42 ` [kvm-unit-tests PATCH v3 2/2] s390x: add cmm migration test Nico Boehr
2022-05-12 15:44 ` [kvm-unit-tests PATCH v3 0/2] s390x: add migration test for CMM Claudio Imbrenda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox