diff options
author | Christian Borntraeger <[email protected]> | 2017-09-19 12:34:06 +0200 |
---|---|---|
committer | Christian Borntraeger <[email protected]> | 2017-11-09 09:35:06 +0100 |
commit | 72e1ad4200d5ed5c5adf120b77fb2900a29a48e5 (patch) | |
tree | 74c67a34f0badc9ee9fbd7487f3323a5b6871de4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 650da25099606db05e3546201410d92cf2e2545a (diff) |
KVM: s390: document memory ordering for kvm_s390_vcpu_wakeup
swait_active does not enforce any ordering and it can therefore trigger
some subtle races when the CPU moves the read for the check before a
previous store and that store is then used on another CPU that is
preparing the swait.
On s390 there is a call to swait_active in kvm_s390_vcpu_wakeup. The
good thing is, on s390 all potential races cannot happen because all
callers of kvm_s390_vcpu_wakeup do not store (no race) or use an atomic
operation, which handles memory ordering. Since this is not guaranteed
by the Linux semantics (but by the implementation on s390) let's add
smp_mb_after_atomic to make this obvious and document the ordering.
Suggested-by: Paolo Bonzini <[email protected]>
Acked-by: Halil Pasic <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions