v4->v5: --- * merge migration-during-cmm and migration-cmm into one file and remove the cmm library 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@xxxxxxxxxxxxx/ * 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 (1): s390x: add CMM test during migration s390x/migration-cmm.c | 258 +++++++++++++++++++++++++++++++++++++----- s390x/unittests.cfg | 15 ++- 2 files changed, 240 insertions(+), 33 deletions(-) -- 2.36.1