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

Reply via email to