From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2474B459D7; Fri, 20 Sep 2024 17:09:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA8954067E; Fri, 20 Sep 2024 17:09:31 +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 ABCDA40669 for ; Fri, 20 Sep 2024 17:09:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726844970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q6fWZmr6Ww/8KBNF/ub0GzboH6tYJe2pRq7LOKWYCkc=; b=WUQlLZfVCEqboerRPHB2+QAfjtgn/IPUZCp7NmfPHSGGtU41k3xEHHqRpJ+1WSxtUb5/h9 etuKXvgnSiu9Yx8sGPz+qqgrzVo1u0LJ8IpHzUWHjuJs1zeIMkLeqBdMSHamdyZ9YcBhve h1HpDwsgA1ViCfeH1GNVzsOaF7gXirc= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-343-LGWWJdAvO72enm9aj9QjUQ-1; Fri, 20 Sep 2024 11:09:28 -0400 X-MC-Unique: LGWWJdAvO72enm9aj9QjUQ-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3CA9219792FD; Fri, 20 Sep 2024 15:09:26 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.31]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DF2B23001D15; Fri, 20 Sep 2024 15:09:23 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com Cc: Maxime Coquelin Subject: [PATCH v2 0/2] vhost: add VDUSE reconnection support Date: Fri, 20 Sep 2024 17:09:19 +0200 Message-ID: <20240920150921.994434-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 This series adds support for VDUSE reconnection. First patch introduces the reconnection file layout and track the virtqueues available index updates in the datapath and control queue. Second patch adds VDUSE reconnect intialization and some sanity checks to prevent incompatible reconnections. Changes in v2: ============== - Added more sanity checks at reconnection - Improve versionning - Fix error loggin (Chenbo) - Clarify why offloading device start is required (Chenbo) - Change runtime path to /vduse instead of /dpdk/vduse Maxime Coquelin (2): vhost: add logging mechanism for reconnection vhost: add reconnection support to VDUSE lib/vhost/vduse.c | 308 +++++++++++++++++++++++++++++++----- lib/vhost/vhost.h | 41 ++++- lib/vhost/virtio_net.c | 8 + lib/vhost/virtio_net_ctrl.c | 2 + 4 files changed, 316 insertions(+), 43 deletions(-) -- 2.46.0