[dpdk-dev] [PATCH] vhost: flush used->idx update before reading avail->flags

Luke Gorrie luke at snabb.co
Thu Apr 23 15:57:04 CEST 2015


On 22 April 2015 at 18:33, Huawei Xie <huawei.xie at intel.com> wrote:

> update of used->idx and read of avail->flags could be reordered.
> memory fence should be used to ensure the order, otherwise guest could see
> a stale used->idx value after it toggles the interrupt suppression flag.
>

This patch looks right to me.


More information about the dev mailing list