OpenCloudOS-Kernel/tools/testing/selftests/kvm
Maciej S. Szmigiero 0c55f867f0 selftests: kvm/set_memory_region_test: Fix race in move region test
The current memory region move test correctly handles the situation that
the second (realigning) memslot move operation would temporarily trigger
MMIO until it completes, however it does not handle the case in which the
first (misaligning) move operation does this, too.
This results in false test assertions in case it does so.

Fix this by handling temporary MMIO from the first memslot move operation
in the test guest code, too.

Fixes: 8a0639fe92 ("KVM: sefltests: Add explicit synchronization to move mem region test")
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <0fdddb94bb0e31b7da129a809a308d91c10c0b5e.1606941224.git.maciej.szmigiero@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-03 12:38:58 -05:00
..
aarch64 KVM: selftests: Add blessed SVE registers to get-reg-list 2020-11-08 06:03:02 -05:00
include KVM: selftests: Introduce the dirty log perf test 2020-11-08 06:04:08 -05:00
lib KVM: selftests: Introduce the dirty log perf test 2020-11-08 06:04:08 -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: Introduce the dirty log perf test 2020-11-08 06:04:08 -05:00
Makefile KVM: selftests: Introduce the dirty log perf test 2020-11-08 06:04:08 -05:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Make the number of vcpus global 2020-11-08 06:04:03 -05:00
dirty_log_perf_test.c KVM: selftests: allow two iterations of dirty_log_perf_test 2020-11-09 09:45:17 -05:00
dirty_log_test.c KVM: selftests: Drop pointless vm_create wrapper 2020-11-08 06:03:36 -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
set_memory_region_test.c selftests: kvm/set_memory_region_test: Fix race in move region test 2020-12-03 12:38:58 -05:00
steal_time.c KVM: selftests: Rework timespec functions and usage 2020-03-18 14:08:56 +01:00