public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3 0/4] s390x: add migration test support
@ 2022-04-20 13:45 Nico Boehr
  2022-04-20 13:45 ` [kvm-unit-tests PATCH v3 1/4] lib: s390x: add support for SCLP console read Nico Boehr
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Nico Boehr @ 2022-04-20 13:45 UTC (permalink / raw)
  To: kvm, linux-s390; +Cc: frankja, imbrenda, thuth

Changelog from v2:
---
- Cosmetic fixes, typo in comments (thanks Thomas)
- Improve migration prompt when tests are run manually (thanks Thomas)
- Whitespace fixes

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

-- 
2.31.1


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

end of thread, other threads:[~2022-04-22  8:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-20 13:45 [kvm-unit-tests PATCH v3 0/4] s390x: add migration test support Nico Boehr
2022-04-20 13:45 ` [kvm-unit-tests PATCH v3 1/4] lib: s390x: add support for SCLP console read Nico Boehr
2022-04-20 14:16   ` Claudio Imbrenda
2022-04-21 14:29   ` Janosch Frank
2022-04-22  7:50     ` Nico Boehr
2022-04-22  8:01       ` Janosch Frank
2022-04-20 13:45 ` [kvm-unit-tests PATCH v3 2/4] s390x: add support for migration tests Nico Boehr
2022-04-20 13:45 ` [kvm-unit-tests PATCH v3 3/4] s390x: don't run migration tests under PV Nico Boehr
2022-04-20 13:45 ` [kvm-unit-tests PATCH v3 4/4] s390x: add basic migration test Nico Boehr
2022-04-20 14:22   ` Claudio Imbrenda

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