linux/tools/testing/selftests/kvm
Thomas Huth a049a37716 KVM: selftests: Enable dirty_log_test on s390x
To run the dirty_log_test on s390x, we have to make sure that we
access the dirty log bitmap with little endian byte ordering and
we have to properly align the memslot of the guest.
Also all dirty bits of a segment are set once on s390x when one
of the pages of a segment are written to for the first time, so
we have to make sure that we touch all pages during the first
iteration to keep the test in sync here.
DEFAULT_GUEST_TEST_MEM needs an adjustment, too. On some s390x
distributions, the ELF binary is linked to address 0x80000000,
so we have to avoid that our test region overlaps into this area.
0xc0000000 seems to be a good alternative that should work on x86
and aarch64, too.

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20190731151525.17156-4-thuth@redhat.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2019-08-02 15:44:23 +02:00
..
include KVM: selftests: Split ucall.c into architecture specific files 2019-08-02 15:44:16 +02:00
lib KVM: selftests: Implement ucall() for s390x 2019-08-02 15:44:23 +02:00
s390x KVM: selftests: Implement ucall() for s390x 2019-08-02 15:44:23 +02:00
x86_64 KVM: s390: add kselftests 2019-07-15 13:28:58 +02:00
.gitignore tests: kvm: Check for a kernel warning 2019-06-19 16:11:54 +02:00
clear_dirty_log_test.c kvm: introduce manual dirty log reprotect 2018-12-14 12:34:19 +01:00
dirty_log_test.c KVM: selftests: Enable dirty_log_test on s390x 2019-08-02 15:44:23 +02:00
kvm_create_max_vcpus.c KVM: s390: add kselftests 2019-07-15 13:28:58 +02:00
Makefile KVM: selftests: Enable dirty_log_test on s390x 2019-08-02 15:44:23 +02:00