mbox series

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

Message ID 20230919102346.2117963-1-d-tatianin@yandex-team.ru
Headers show
Series migration-qtest: zero the first byte of each page on start | expand

Message

Daniil Tatianin Sept. 19, 2023, 10:23 a.m. UTC
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(-)