Skip to content

s390x: add migration test support

Nico Boehr kvm linux-s390 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 2 repliesIn review
  2. v34 patches 5 repliesSuperseded
  3. v24 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches15 repliesSuperseded

Changes in v4 from the cover letter

---
- Rename read_buf_end to read_buf_length (Thanks Janosch)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib: s390x: add support for SCLP console readlib/s390x/sclp-console.c lib/s390x/sclp.h s390x/Makefile+82 -61 reply
2/4s390x: add support for migration testss390x/run+1 -10 replies
3/4s390x: don't run migration tests under PVs390x/run scripts/s390x/func.bash+6 -10 replies
4/4s390x: add basic migration tests390x/Makefile s390x/migration.c s390x/unittests.cfg+178 -00 replies

Reviews trailers per patch

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

PatchThomas HuthClaudio ImbrendaJanosch Frank
1/4R-b R-b R-b
2/4R-b R-b
3/4A-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [kvm-unit-tests PATCH v4 0/4] s390x: add migration test support

Changelog from v3:
---
- Rename read_buf_end to read_buf_length (Thanks Janosch)

This series depends on my SIGP store additional status series to have access to the guarded-storage and vector related defines
("[kvm-unit-tests PATCH v3 0/2] s390x: Add tests for SIGP store adtl status").

Add migration test support for s390x.

arm and powerpc already support basic migration tests.

If a test is in the migration group, it can print "migrate" on its console. This will cause it to be migrated to a new QEMU instance. When migration is finished, the test will be able to read a newline from its standard input.

We need the following pieces for this to work under s390x:

* read support for the sclp console. This can be very basic, it doesn't even have to read anything useful, we just need to know something happened on the console.
* s390/run adjustments to call the migration helper script.

This series adds basic migration tests for s390x, which I plan to extend further.

Nico Boehr (4):
lib: s390x: add support for SCLP console read
s390x: add support for migration tests
s390x: don't run migration tests under PV
s390x: add basic migration test

 lib/s390x/sclp-console.c |  79 ++++++++++++++++--
 lib/s390x/sclp.h         |   8 ++
 s390x/Makefile           |   2 +
 s390x/migration.c        | 172 +++++++++++++++++++++++++++++++++++++++
 s390x/run                |   7 +-
 s390x/unittests.cfg      |   5 ++
 scripts/s390x/func.bash  |   2 +-
 7 files changed, 267 insertions(+), 8 deletions(-)
 create mode 100644 s390x/migration.c
Signature · 1 line
2.31.1