linux-xiaomi-chiron/tools/testing/selftests/kvm
Raghavendra Rao Ananta 9e2f6498ef selftests: KVM: Handle compiler optimizations in ucall
The selftests, when built with newer versions of clang, is found
to have over optimized guests' ucall() function, and eliminating
the stores for uc.cmd (perhaps due to no immediate readers). This
resulted in the userspace side always reading a value of '0', and
causing multiple test failures.

As a result, prevent the compiler from optimizing the stores in
ucall() with WRITE_ONCE().

Suggested-by: Ricardo Koller <ricarkol@google.com>
Suggested-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Message-Id: <20220615185706.1099208-1-rananta@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-23 10:26:41 -04:00
..
aarch64
include KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2 2022-06-09 10:52:27 -04:00
lib selftests: KVM: Handle compiler optimizations in ucall 2022-06-23 10:26:41 -04:00
s390x
x86_64 KVM: selftests: Replace x86_page_size with PG_LEVEL_XX 2022-06-09 10:52:22 -04:00
.gitignore KVM: selftests: x86: Sync the new name of the test case to .gitignore 2022-05-25 05:15:48 -04:00
access_tracking_perf_test.c
config
demand_paging_test.c
dirty_log_perf_test.c KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2 2022-06-09 10:52:27 -04:00
dirty_log_test.c
hardware_disable_test.c
kvm_binary_stats_test.c
kvm_create_max_vcpus.c
kvm_page_table_test.c
Makefile KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2 2022-06-09 10:52:27 -04:00
max_guest_memory_test.c KVM: selftests: Replace x86_page_size with PG_LEVEL_XX 2022-06-09 10:52:22 -04:00
memslot_modification_stress_test.c
memslot_perf_test.c
rseq_test.c
set_memory_region_test.c
settings
steal_time.c
system_counter_offset_test.c