public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Nico Boehr <nrb@linux.ibm.com>
To: kvm@vger.kernel.org, linux-s390@vger.kernel.org
Cc: frankja@linux.ibm.com, imbrenda@linux.ibm.com, thuth@redhat.com
Subject: [kvm-unit-tests PATCH v2 0/4] s390x: add migration test support
Date: Wed, 13 Apr 2022 17:26:54 +0200	[thread overview]
Message-ID: <20220413152658.715003-1-nrb@linux.ibm.com> (raw)

Changelog from v1:
----
- Instead of the selftest, do an actual migration tests of guarded storage and
  vector registers. To have access to gs and vector related defines, this now
  depends on my SIGP store adtl status series
  ("[kvm-unit-tests PATCH v3 0/2] s390x: Add tests for SIGP store adtl status")
- Lower case const ints (Thanks Janosch)
- Use define instead of magic number (Thanks Thomas)
- Add missing "ret = 0" (Thanks Thomas)
- Minor typos and style 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


             reply	other threads:[~2022-04-13 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13 15:26 Nico Boehr [this message]
2022-04-13 15:26 ` [kvm-unit-tests PATCH v2 1/4] lib: s390x: add support for SCLP console read Nico Boehr
2022-04-13 15:42   ` Thomas Huth
2022-04-13 15:26 ` [kvm-unit-tests PATCH v2 2/4] s390x: add support for migration tests Nico Boehr
2022-04-13 15:26 ` [kvm-unit-tests PATCH v2 3/4] s390x: don't run migration tests under PV Nico Boehr
2022-04-13 15:26 ` [kvm-unit-tests PATCH v2 4/4] s390x: add basic migration test Nico Boehr
2022-04-20 11:16   ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220413152658.715003-1-nrb@linux.ibm.com \
    --to=nrb@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox