[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] vhost-user: Skip unnecessary duplicated VHOST_USER_SET_LOG_B
From: |
BillXiang |
Subject: |
Re: [PATCH] vhost-user: Skip unnecessary duplicated VHOST_USER_SET_LOG_BASE requests |
Date: |
Mon, 01 Jul 2024 15:50:20 +0800 |
> From: "项文成"<xiangwencheng@dayudpu.com>
> Date: Thu, Jun 13, 2024, 14:51
> Subject: [PATCH] vhost-user: Skip unnecessary duplicated
> VHOST_USER_SET_LOG_BASE requests
> To: <qemu-devel@nongnu.org>
> Cc: <mst@redhat.com>, "BillXiang"<xiangwencheng@dayudpu.com>
> From: BillXiang <xiangwencheng@dayudpu.com>
>
> The VHOST_USER_SET_LOG_BASE requests should be categorized into
> non-vring specific messages, and should be sent only once.
> If send more than once, dpdk will munmap old log_addr which may has been used
> and cause segmentation fault.
>
> Signed-off-by: BillXiang <xiangwencheng@dayudpu.com>
> ---
> hw/virtio/vhost-user.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
> index cdf9af4a4b..41e34edd49 100644
> --- a/hw/virtio/vhost-user.c
> +++ b/hw/virtio/vhost-user.c
> @@ -371,6 +371,7 @@ static bool
> vhost_user_per_device_request(VhostUserRequest request)
> case VHOST_USER_RESET_DEVICE:
> case VHOST_USER_ADD_MEM_REG:
> case VHOST_USER_REM_MEM_REG:
> + case VHOST_USER_SET_LOG_BASE:
> return true;
> default:
> return false;
> --
> 2.30.0
ping
- Re: [PATCH] vhost-user: Skip unnecessary duplicated VHOST_USER_SET_LOG_BASE requests,
BillXiang <=