From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: Re: [PATCH] vhost: fix missing increment of log cache count Date: Mon, 18 Jun 2018 11:22:17 +0800 Message-ID: <20180618032216.GA7022@debian> References: <20180615134846.11641-1-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: dev@dpdk.org, zhihong.wang@intel.com, stable@dpdk.org, xnhp0320@icloud.com, i.maximets@samsung.com To: Maxime Coquelin Return-path: Content-Disposition: inline In-Reply-To: <20180615134846.11641-1-maxime.coquelin@redhat.com> 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 Fri, Jun 15, 2018 at 03:48:46PM +0200, Maxime Coquelin wrote: > 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 > Cc: Ilya Maximets > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h > index 528e01c8f..786a74f64 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 > -- > 2.14.3 > Reviewed-by: Tiwei Bie