linux/tools/testing/selftests/kvm
Andrew Jones bffed38d4f kvm: selftests: aarch64: dirty_log_test: fix unaligned memslot size
The memory slot size must be aligned to the host's page size. When
testing a guest with a 4k page size on a host with a 64k page size,
then 3 guest pages are not host page size aligned. Since we just need
a nearly arbitrary number of extra pages to ensure the memslot is not
aligned to a 64 host-page boundary for this test, then we can use
16, as that's 64k aligned, but not 64 * 64k aligned.

Fixes: 76d58e0f07 ("KVM: fix KVM_CLEAR_DIRTY_LOG for memory slots of unaligned size", 2019-04-17)
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-05-24 21:27:15 +02:00
..
include tests: kvm: Add tests for KVM_SET_NESTED_STATE 2019-05-08 14:12:09 +02:00
lib KVM: selftests: Compile code with warnings enabled 2019-05-24 21:27:05 +02:00
x86_64 KVM: selftests: do not blindly clobber registers in guest asm 2019-05-24 21:27:10 +02:00
.gitignore tests: kvm: Add tests for KVM_SET_NESTED_STATE 2019-05-08 14:12:09 +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: aarch64: dirty_log_test: fix unaligned memslot size 2019-05-24 21:27:15 +02:00
Makefile KVM: selftests: Compile code with warnings enabled 2019-05-24 21:27:05 +02:00