From patchwork Mon Sep 18 01:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cindy Lu X-Patchwork-Id: 144 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3ECBE425C8; Mon, 18 Sep 2023 03:58:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B695840263; Mon, 18 Sep 2023 03:58:05 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id AE4CC40261 for ; Mon, 18 Sep 2023 03:58:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695002283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8Cr4lEWfqwKqaqVmUq2UpDh2Nwq6dWkN5DYcoPNTUZg=; b=eof1Z4JdutBCr+Bzc+PlKO5Cy3Wm7AgrDmDw7hVGlUT9nYviuav+ORIXz4f+YiYT3rdU6j XonoZ/wiI2hn6rYos/mxPSG8s/uXXQrjyGZq1wQSQUOuv+69Ah4lJIemWyXLUFK9dH+UVR 9MPbyewugiNq47xKuI02wCtTqC025so= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-121-jPVi5wslNsCQ_37g8Kd6vA-1; Sun, 17 Sep 2023 21:58:01 -0400 X-MC-Unique: jPVi5wslNsCQ_37g8Kd6vA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 81904811E86; Mon, 18 Sep 2023 01:58:01 +0000 (UTC) Received: from server.redhat.com (unknown [10.72.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 07D7740C6EA8; Mon, 18 Sep 2023 01:57:58 +0000 (UTC) From: Cindy Lu To: lulu@redhat.com, jasowang@redhat.com, xieyongji@bytedance.com, dev@dpdk.org, maxime.coquelin@redhat.com Subject: [RFC v1 0/2] Vduse: Add support for reconncect Date: Mon, 18 Sep 2023 09:57:48 +0800 Message-Id: <20230918015750.438462-1-lulu@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi All this patch is add support for reconnection This patch changes based on Maxime's patch https://gitlab.com/mcoquelin/dpdk-next-virtio/-/commit/a89dc311f2d03e99b8180f377b4a60a0e94 The biggest change is sync the information with kernel by mmap the kernel is based on https://gitlab.com/lulu6/vhost/-/tree/vduse4 test passed in vduse+dpdk-testpmd Cindy Lu (1): vduse: add mapping process in vduse create and destroy Maxime Coquelin (1): vhost: add reconnection support to VDUSE (WIP) lib/vhost/vduse.c | 191 +++++++++++++++++++++++++++--------- lib/vhost/vhost.h | 21 ++++ lib/vhost/virtio_net.c | 22 +++++ lib/vhost/virtio_net_ctrl.c | 4 + 4 files changed, 194 insertions(+), 44 deletions(-)