[kvm-unit-tests PATCH 0/7] more migration enhancements and tests

Nicholas Piggin npiggin at gmail.com
Mon Feb 26 20:38:25 AEDT 2024


This series applies on top of the multi-migration patches and just
has assorted things I've been collecting.

- New migrate_skip() command that tidies up the wart of using
  migrate_once() to skip migration.
- New "continuous migration" mode where the harness just
  migrates the test contually while it is running.
- Put some migration tests in gitlab CI for powerpc and s390.
- Add a test case that can reproduce the QEMU TCG dirty bitmap
  migration bug.

Nicholas Piggin (7):
  arch-run: Keep infifo open
  migration: Add a migrate_skip command
  (arm|s390): Use migrate_skip in test cases
  powerpc: add asm/time.h header with delay and get_clock_us/ms
  arch-run: Add a "continuous" migration option for tests
  gitlab-ci: Run migration selftest on s390x and powerpc
  common: add memory dirtying vs migration test

 .gitlab-ci.yml              |  18 ++++---
 arm/gic.c                   |  21 ++++----
 common/memory-verify.c      |  48 +++++++++++++++++
 common/selftest-migration.c |  26 ++++++---
 lib/migrate.c               |  37 ++++++++++++-
 lib/migrate.h               |   5 ++
 lib/powerpc/asm/processor.h |  21 --------
 lib/powerpc/asm/time.h      |  30 +++++++++++
 lib/powerpc/processor.c     |  11 ++++
 lib/powerpc/smp.c           |   1 +
 lib/ppc64/asm/time.h        |   1 +
 powerpc/Makefile.common     |   1 +
 powerpc/memory-verify.c     |   1 +
 powerpc/spapr_vpa.c         |   1 +
 powerpc/sprs.c              |   1 +
 powerpc/tm.c                |   1 +
 powerpc/unittests.cfg       |  13 +++++
 s390x/Makefile              |   1 +
 s390x/memory-verify.c       |   1 +
 s390x/migration-cmm.c       |   8 +--
 s390x/migration-skey.c      |   4 +-
 s390x/migration.c           |   1 +
 s390x/unittests.cfg         |  11 ++++
 scripts/arch-run.bash       | 104 +++++++++++++++++++++++++++++-------
 24 files changed, 299 insertions(+), 68 deletions(-)
 create mode 100644 common/memory-verify.c
 create mode 100644 lib/powerpc/asm/time.h
 create mode 100644 lib/ppc64/asm/time.h
 create mode 120000 powerpc/memory-verify.c
 create mode 120000 s390x/memory-verify.c

-- 
2.42.0



More information about the Linuxppc-dev mailing list