Skip to contentSkip to conversation

virtio-pci: drop unused wmb macro

PATCH Applied Michael S. Tsirkin 2 participants 2 messages May 28, 2013 – May 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-pci: drop unused wmb macro

The implementation is wrong for kvm, and it's unused anyway. Drop it.

---
 hw/virtio/virtio-pci.c | 6 ------
 1 file changed, 6 deletions(-)
hw/virtio/virtio-pci.c +0 -6
index 87b78bc..f4db224 100644
@@ -89,12 +89,6 @@
 /* Flags track per-device state like workarounds for quirks in older guests. */
 #define VIRTIO_PCI_FLAG_BUS_MASTER_BUG  (1 << 0)
 
-/* 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.
- */
-#define wmb() do { } while (0)
-
 /* HACK for virtio to determine if it's running a big endian guest */
 bool virtio_is_big_endian(void);
 
Signature · 1 line
MST