]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.c
vhost: translate incoming log address to GPA
[dpdk.git] / lib / librte_vhost / vhost.c
index cea44df8cb8625f3d1236a93c51642798f53e90f..76e753475b82d902dee8619d7cbf3cc5632a3bb6 100644 (file)
@@ -382,6 +382,7 @@ vring_invalidate(struct virtio_net *dev, struct vhost_virtqueue *vq)
        vq->desc = NULL;
        vq->avail = NULL;
        vq->used = NULL;
        vq->desc = NULL;
        vq->avail = NULL;
        vq->used = NULL;
+       vq->log_guest_addr = 0;
 
        if (dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM))
                vhost_user_iotlb_wr_unlock(vq);
 
        if (dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM))
                vhost_user_iotlb_wr_unlock(vq);