public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v4 0/2] s390x: test CMM during migration
@ 2022-12-01  9:17 Nico Boehr
  2022-12-01  9:17 ` [kvm-unit-tests PATCH v4 1/2] s390x: add a library for CMM-related functions Nico Boehr
  2022-12-01  9:17 ` [kvm-unit-tests PATCH v4 2/2] s390x: add CMM test during migration Nico Boehr
  0 siblings, 2 replies; 3+ messages in thread
From: Nico Boehr @ 2022-12-01  9:17 UTC (permalink / raw)
  To: kvm; +Cc: frankja, imbrenda, thuth

v3->v4:
---
* rebase on top of Claudio's series
    [kvm-unit-tests PATCH v3 0/2] lib: s390x: add PSW and
    PSW_WITH_CUR_MASK macros
    https://lore.kernel.org/kvm/20221130154038.70492-1-imbrenda@linux.ibm.com/
* switch cmm.h to system includes
* move const qualifier before struct keyword

v2->v3:
---
* make allowed_essa_state_masks static (thanks Thomas)
* change several variables to unsigned (thanks Claudio)
* remove unneeded assignment (thanks Claudio)
* fix line length (thanks Claudio)
* fix some spellings, line wraps (thanks Thomas)
* remove unneeded goto (thanks Thomas)
* add migrate_once (thanks Claudio)
  I introduce migrate_once() only in migration-during-cmm.c for now, but
  I plan to send a future patch to move it to the library.
* add missing READ_ONCE (thanks Claudio)

v1->v2:
---
* cmm lib: return struct instead of passing in a pointer (thanks Claudio)
* cmm lib: remove get_page_addr() (thanks Claudio)
* cmm lib: print address of mismatch (thanks Claudio)
* cmm lib: misc comments reworked, added and variables renamed
* make sure page states change on every iteration (thanks Claudio)
* add WRITE_ONCE even when not strictly needed (thanks Claudio)

Add a test which changes CMM page states while VM is being migrated.

Nico Boehr (2):
  s390x: add a library for CMM-related functions
  s390x: add CMM test during migration

 lib/s390x/cmm.c              |  92 ++++++++++++++++++++++++++
 lib/s390x/cmm.h              |  31 +++++++++
 s390x/Makefile               |   2 +
 s390x/migration-cmm.c        |  33 ++--------
 s390x/migration-during-cmm.c | 123 +++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg          |   5 ++
 6 files changed, 260 insertions(+), 26 deletions(-)
 create mode 100644 lib/s390x/cmm.c
 create mode 100644 lib/s390x/cmm.h
 create mode 100644 s390x/migration-during-cmm.c

-- 
2.36.1


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

end of thread, other threads:[~2022-12-01  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01  9:17 [kvm-unit-tests PATCH v4 0/2] s390x: test CMM during migration Nico Boehr
2022-12-01  9:17 ` [kvm-unit-tests PATCH v4 1/2] s390x: add a library for CMM-related functions Nico Boehr
2022-12-01  9:17 ` [kvm-unit-tests PATCH v4 2/2] s390x: add CMM test during migration Nico Boehr

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