Blame SOURCES/0001-vhost-fix-missing-increment-of-log-cache-count.patch

ab2f3a
From ed06ea24dc419a55fd5e9a1601f1144434360eda Mon Sep 17 00:00:00 2001
ab2f3a
From: Maxime Coquelin <maxime.coquelin@redhat.com>
ab2f3a
Date: Fri, 15 Jun 2018 15:48:46 +0200
ab2f3a
Subject: [PATCH] vhost: fix missing increment of log cache count
ab2f3a
ab2f3a
The log_cache_nb_elem was never incremented, resulting
ab2f3a
in all dirty pages to be missed during live migration.
ab2f3a
ab2f3a
Fixes: c16915b87109 ("vhost: improve dirty pages logging performance")
ab2f3a
Cc: stable@dpdk.org
ab2f3a
ab2f3a
Reported-by: Peng He <xnhp0320@icloud.com>
ab2f3a
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
ab2f3a
Acked-by: Ilya Maximets <i.maximets@samsung.com>
ab2f3a
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
ab2f3a
(cherry picked from commit 511b413bbcbd711dcf582485a72213fa90595cbe)
ab2f3a
---
ab2f3a
 lib/librte_vhost/vhost.h | 1 +
ab2f3a
 1 file changed, 1 insertion(+)
ab2f3a
ab2f3a
diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
ab2f3a
index e0ab65e0c..429b974db 100644
ab2f3a
--- a/lib/librte_vhost/vhost.h
ab2f3a
+++ b/lib/librte_vhost/vhost.h
ab2f3a
@@ -387,6 +387,7 @@ vhost_log_cache_page(struct virtio_net *dev, struct vhost_virtqueue *vq,
ab2f3a
 
ab2f3a
 	vq->log_cache[i].offset = offset;
ab2f3a
 	vq->log_cache[i].val = (1UL << bit_nr);
ab2f3a
+	vq->log_cache_nb_elem++;
ab2f3a
 }
ab2f3a
 
ab2f3a
 static __rte_always_inline void
ab2f3a
-- 
ab2f3a
2.17.1
ab2f3a