From: Maxime Coquelin Date: Fri, 15 Jun 2018 13:48:46 +0000 (+0200) Subject: vhost: fix missing increment of log cache count X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e11411b52ae1e778fecaf0b896ff1f6aa4da7c99;p=dpdk.git vhost: fix missing increment of log cache count The log_cache_nb_elem was never incremented, resulting in all dirty pages to be missed during live migration. Fixes: c16915b87109 ("vhost: improve dirty pages logging performance") Cc: stable@dpdk.org Reported-by: Peng He Signed-off-by: Maxime Coquelin Acked-by: Ilya Maximets Reviewed-by: Tiwei Bie --- diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 528e01c8f9..786a74f649 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -429,6 +429,7 @@ vhost_log_cache_page(struct virtio_net *dev, struct vhost_virtqueue *vq, vq->log_cache[i].offset = offset; vq->log_cache[i].val = (1UL << bit_nr); + vq->log_cache_nb_elem++; } static __rte_always_inline void