diff options
author | Sean Christopherson <seanjc@google.com> | 2024-08-29 02:20:13 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-11-01 19:21:46 +0300 |
commit | 3ffe874ea3eb4c674334c92303a72c76a1141c42 (patch) | |
tree | 0d7ce585af4a9a9ec78e949f6590f57a444c5a5c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6e44d2427b70911514663989963a114d466ca79d (diff) | |
download | linux-3ffe874ea3eb4c674334c92303a72c76a1141c42.tar.xz |
KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request()
Wrap kvm_vcpu_exit_request()'s load of vcpu->mode with READ_ONCE() to
ensure the variable is re-loaded from memory, as there is no guarantee the
caller provides the necessary annotations to ensure KVM sees a fresh value,
e.g. the VM-Exit fastpath could theoretically reuse the pre-VM-Enter value.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20240828232013.768446-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions