Skip to content

s390x: add migration test for CMM

Nico Boehr kvm linux-s390 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 8 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: s390x: add header for CMM related defineslib/s390x/asm/cmm.h s390x/cmm.c+53 -220 replies
2/2s390x: add cmm migration tests390x/Makefile s390x/migration-cmm.c s390x/unittests.cfg+82 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchClaudio Imbrenda
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [kvm-unit-tests PATCH v3 0/2] s390x: add migration test for CMM

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
Signature · 1 line
2.31.1