linux-xiaomi-chiron/tools/testing/selftests/kvm
Ben Gardon 2fe5149bdf KVM: selftests: Remove address rounding in guest code
Rounding the address the guest writes to a host page boundary
will only have an effect if the host page size is larger than the guest
page size, but in that case the guest write would still go to the same
host page. There's no reason to round the address down, so remove the
rounding to simplify the demand paging test.

This series was tested by running the following invocations on an Intel
Skylake machine:
dirty_log_perf_test -b 20m -i 100 -v 64
dirty_log_perf_test -b 20g -i 5 -v 4
dirty_log_perf_test -b 4g -i 5 -v 32
demand_paging_test -b 20m -v 64
demand_paging_test -b 20g -v 4
demand_paging_test -b 4g -v 32
All behaved as expected.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20201027233733.1484855-3-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-08 06:03:34 -05:00
..
aarch64 KVM: selftests: Add blessed SVE registers to get-reg-list 2020-11-08 06:03:02 -05:00
include KVM: selftests: Remove address rounding in guest code 2020-11-08 06:03:34 -05:00
lib KVM: selftests: Add aarch64 get-reg-list test 2020-11-08 06:02:45 -05:00
s390x selftests: KVM: s390: check for registers to NOT change on reset 2020-03-16 17:59:09 +01:00
x86_64 selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
.gitignore KVM: selftests: Add blessed SVE registers to get-reg-list 2020-11-08 06:03:02 -05:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Factor code out of demand_paging_test 2020-11-08 06:03:34 -05:00
dirty_log_test.c KVM: selftests: Use a single binary for dirty/clear log test 2020-11-08 06:03:31 -05:00
kvm_create_max_vcpus.c KVM: selftests: Convert some printf's to pr_info's 2020-03-16 17:57:07 +01:00
Makefile KVM: selftests: Use a single binary for dirty/clear log test 2020-11-08 06:03:31 -05:00
set_memory_region_test.c selftests: kvm/set_memory_region_test: do not check RIP if the guest shuts down 2020-04-21 09:13:13 -04:00
steal_time.c KVM: selftests: Rework timespec functions and usage 2020-03-18 14:08:56 +01:00