[dpdk-stable] [PATCH v2 2/2] vhost: remove pending IOTLB entry if IOTLB MISS request sending failed
Maxime Coquelin
maxime.coquelin at redhat.com
Mon Jan 29 17:31:53 CET 2018
On 01/29/2018 04:13 PM, Maxime Coquelin wrote:
> @@ -52,8 +54,13 @@ __vhost_iova_to_vva(struct virtio_net *dev, struct vhost_virtqueue *vq,
> */
> vhost_user_iotlb_rd_unlock(vq);
>
> - vhost_user_iotlb_pending_insert(vq, iova + tmp_size, perm);
> - vhost_user_iotlb_miss(dev, iova + tmp_size, perm);
> + vhost_user_iotlb_pending_insert(vq, iova, perm);
> + if (vhost_user_iotlb_miss(dev, iova, perm)) {
> + RTE_LOG(ERR, VHOST_CONFIG,
> + "Failed to send IOTLB miss request for IOVA %lx\n",
> + iova + tmp_size);
Oops, the correct value is "iova", not "iova + tmp_size"
I just posted v3 fixing it.
Maxime
More information about the stable
mailing list