From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v2 2/2] vhost: remove pending IOTLB entry if IOTLB MISS request sending failed Date: Mon, 29 Jan 2018 17:31:53 +0100 Message-ID: References: <20180129151347.23640-1-maxime.coquelin@redhat.com> <20180129151347.23640-3-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@dpdk.org To: dev@dpdk.org, tiwei.bie@intel.com, yliu@fridaylinux.org, jfreimann@redhat.com, jianfeng.tan@intel.com Return-path: In-Reply-To: <20180129151347.23640-3-maxime.coquelin@redhat.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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