[PATCH] vhost: fix unnecessary dirty page logging
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Jul 8 11:11:46 CEST 2022
On 7/7/22 08:55, xuan.ding at intel.com wrote:
> From: Xuan Ding <xuan.ding at intel.com>
>
> The dirty page logging is only required in vhost enqueue direction for
> live migration. This patch removes the unnecessary dirty page logging
> in vhost dequeue direction. Otherwise, it will result in a performance
> drop. Some if-else judgements are also optimized to improve performance.
>
> Fixes: 6d823bb302c7 ("vhost: prepare sync for descriptor to mbuf refactoring")
> Fixes: b6eee3e83402 ("vhost: fix sync dequeue offload")
>
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> ---
> lib/vhost/virtio_net.c | 31 +++++++++++++------------------
> 1 file changed, 13 insertions(+), 18 deletions(-)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list