diff options
author | Raghavendra Rao Ananta <rananta@google.com> | 2022-06-15 18:57:06 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-23 10:26:41 -0400 |
commit | 9e2f6498efbbc880d7caa7935839e682b64fe5a6 (patch) | |
tree | a552aa7ce63bd9b0997b9ef61b43b2ef35eeda14 /MAINTAINERS | |
parent | 933b5f9f98da29af646b51b36a0753692908ef64 (diff) | |
download | linux-9e2f6498efbbc880d7caa7935839e682b64fe5a6.tar.gz linux-9e2f6498efbbc880d7caa7935839e682b64fe5a6.tar.bz2 linux-9e2f6498efbbc880d7caa7935839e682b64fe5a6.zip |
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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions