From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH0j-0004Oj-Qm for qemu-devel@nongnu.org; Tue, 28 May 2013 06:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhH0f-00064j-Vr for qemu-devel@nongnu.org; Tue, 28 May 2013 06:20:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH0f-00063U-OX for qemu-devel@nongnu.org; Tue, 28 May 2013 06:20:05 -0400 Date: Tue, 28 May 2013 13:20:23 +0300 From: "Michael S. Tsirkin" Message-ID: <20130528102023.GA30055@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] virtio-pci: drop unused wmb macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Paolo Bonzini , Anthony Liguori , KONRAD Frederic The implementation is wrong for kvm, and it's unused anyway. Drop it. Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-pci.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 87b78bc..f4db224 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -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); -- MST