qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

thread: add qemu_spin_destroy

It will be used for TSAN annotations.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-4-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-7-alex.bennee@linaro.org>

authored by

Emilio G. Cota and committed by
Alex Bennée
4384a70d 0c0fcc20

+3
+3
include/qemu/thread.h
··· 215 215 __sync_lock_release(&spin->value); 216 216 } 217 217 218 + static inline void qemu_spin_destroy(QemuSpin *spin) 219 + { } 220 + 218 221 static inline void qemu_spin_lock(QemuSpin *spin) 219 222 { 220 223 while (unlikely(__sync_lock_test_and_set(&spin->value, true))) {