@@ -21,14 +21,8 @@
* x86 pagesize again. */
#define VIRTIO_PCI_VRING_ALIGN 4096
-/* QEMU doesn't strictly need write barriers since everything runs in
- * lock-step. We'll leave the calls to wmb() in though to make it obvious for
- * KVM or if kqemu gets SMP support.
- * In any case, we must prevent the compiler from reordering the code.
- * TODO: we likely need some rmb()/mb() as well.
-#define wmb() __asm__ __volatile__("": : :"memory")
+ /* TODO: we may also need rmb()s. It hasn't bitten us yet, but.. */
+ #define wmb() __sync_synchronize()
typedef struct VRingDesc