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

Thomas Monjalon thomas.monjalon at 6wind.com
Wed May 13 12:46:30 CEST 2015


2015-04-29 19:11, Huawei Xie:
> 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.
> After guest sets the interrupt suppression flag, it will check if there is more buffer to process through used->idx. If it sees a stale value, it will exit the processing while host willn't send interrupt to guest.
> 
> Signed-off-by: Huawei Xie <huawei.xie at intel.com>

Applied with following title, thanks
	vhost: fix virtio freeze due to missed interrupt



More information about the dev mailing list