qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv2 2/3] virtio: add missing mb() on enable notifi


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCHv2 2/3] virtio: add missing mb() on enable notification
Date: Tue, 24 Apr 2012 16:03:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Il 23/04/2012 15:19, Michael S. Tsirkin ha scritto:
> @@ -694,7 +698,7 @@ static bool vring_notify(VirtIODevice *vdev, VirtQueue 
> *vq)
>      uint16_t old, new;
>      bool v;
>      /* We need to expose used array entries before checking used event. */
> -    mb();
> +    smp_mb();

This mb() is not in upstream QEMU, only in qemu-kvm.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]