diff options
author | 2023-04-18 19:18:52 -0700 | |
---|---|---|
committer | 2023-04-20 09:06:20 +0100 | |
commit | a189884bdc9238aeba941c50f02e25eb584fafed (patch) | |
tree | 4e5c64a8c0724b7584928a45c34241dcab0d2c0f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: Acquire mp_state_lock in kvm_arch_vcpu_ioctl_vcpu_init() (diff) | |
download | linux-rng-a189884bdc9238aeba941c50f02e25eb584fafed.tar.xz linux-rng-a189884bdc9238aeba941c50f02e25eb584fafed.zip |
KVM: arm64: Have kvm_psci_vcpu_on() use WRITE_ONCE() to update mp_state
All accessors of kvm_vcpu_arch::mp_state should be {READ,WRITE}_ONCE(),
since readers of the mp_state don't acquire the mp_state_lock.
Nonetheless, kvm_psci_vcpu_on() updates the mp_state without using
WRITE_ONCE(). So, fix the code to update the mp_state using WRITE_ONCE.
Signed-off-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230419021852.2981107-3-reijiw@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions