]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtio-pci: drop unused wmb macro
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 28 May 2013 10:20:23 +0000 (13:20 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 May 2013 13:16:21 +0000 (08:16 -0500)
The implementation is wrong for kvm, and it's unused anyway.
Drop it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20130528102023.GA30055@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio/virtio-pci.c

index 70d2c6b5e325d427b657b87e54f156b204a0a7b6..444b71aab065914d017bc6a8b0c60eddd4cd764f 100644 (file)
 /* 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);