[PATCH v2 0/3] migration-qtest: zero the first byte of each page on start

Daniil Tatianin posted 3 patches 7 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230919102346.2117963-1-d-tatianin@yandex-team.ru
Maintainers: Juan Quintela <quintela@redhat.com>, Peter Xu <peterx@redhat.com>, Leonardo Bras <leobras@redhat.com>, Thomas Huth <thuth@redhat.com>
tests/migration/i386/a-b-bootblock.S |  18 +-
tests/migration/i386/a-b-bootblock.h |  16 +-
tests/migration/s390x/a-b-bios.c     |   8 +
tests/migration/s390x/a-b-bios.h     | 380 ++++++++++++++-------------
4 files changed, 234 insertions(+), 188 deletions(-)
[PATCH v2 0/3] migration-qtest: zero the first byte of each page on start
Posted by Daniil Tatianin 7 months, 2 weeks ago
This series fixes an issue where the outcome of the migration qtest
relies on the initial memory contents all being the same across the
first 100MiB of RAM, which is a very fragile invariant.
 
We fix this by making sure we zero the first byte of every testable page
in range beforehand.

Changes since v1:
- Add a fix for the s390x test binary as well as suggested by Peter Xu

Daniil Tatianin (3):
  i386/a-b-bootblock: factor test memory addresses out into constants
  i386/a-b-bootblock: zero the first byte of each page on start
  s390x/a-b-bios: zero the first byte of each page on start

 tests/migration/i386/a-b-bootblock.S |  18 +-
 tests/migration/i386/a-b-bootblock.h |  16 +-
 tests/migration/s390x/a-b-bios.c     |   8 +
 tests/migration/s390x/a-b-bios.h     | 380 ++++++++++++++-------------
 4 files changed, 234 insertions(+), 188 deletions(-)

-- 
2.34.1