vhost: fix IOTLB mempool single-consumer flag
authorEugenio Pérez <eperezma@redhat.com>
Mon, 31 Aug 2020 07:59:22 +0000 (09:59 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commit46d3f57537059ef9ec497f97d98e57a1e5f2f417
treee062db2cacce70a58550a3b47643f3dffa5a60c3
parente8671aca2061d7b3d40d786901d31299ff4f65ab
vhost: fix IOTLB mempool single-consumer flag

Control thread (which handles iotlb msg) and forwarding thread
both use iotlb to translate address. The former may modify the
same entry of mempool and may cause a loop in iotlb_pending_entries
list.

Bugzilla ID: 523
Fixes: d012d1f293f4 ("vhost: add IOTLB helper functions")
Cc: stable@dpdk.org
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/iotlb.c