HomeFreeBSD

hyperv: Use proper fence function to keep store-load order for msgs

Description

hyperv: Use proper fence function to keep store-load order for msgs

sfence only makes sure about the store-store order, which is not
sufficient here. Use atomic_thread_fence_seq_cst() as suggested
jhb and kib (a locked op in the nutshell, which should have the

Reviewed by: jhb, kib, Jun Su <junsu microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5436

Details

Provenance
sepheAuthored on
Reviewer
jhb
Differential Revision
D5436: hyperv: Use mfence to make sure about the store-load order for msgs
Parents
rS296179: Add entries for Phil Shafer (phil@)
Branches
Unknown
Tags
Unknown