vhost: remove pending IOTLB entry if miss request failed
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 5 Feb 2018 15:04:57 +0000 (16:04 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Feb 2018 18:56:04 +0000 (19:56 +0100)
commit82b9c1540348b6be7996203065e10421e953cea9
treecd2a3dc7e00905b069deae4212cdfa54a1371762
parent37771844a05c7b0a7b039dcae1b4b0a69b4acced
vhost: remove pending IOTLB entry if miss request failed

In case vhost_user_iotlb_miss returns an error, the pending IOTLB
entry has to be removed from the list as no IOTLB update will be
received.

Fixes: fed67a20ac94 ("vhost: introduce guest IOVA to backend VA helper")
Cc: stable@dpdk.org
Suggested-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/iotlb.c
lib/librte_vhost/iotlb.h
lib/librte_vhost/vhost.c