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 AA7584590E; Thu, 5 Sep 2024 16:26:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F86842D9D; Thu, 5 Sep 2024 16:26:12 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9FFC8427E7 for ; Thu, 5 Sep 2024 16:26:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725546371; 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=HPV0MbIQZusKHn1ibztsY8m6u3QB+m9K6FLzJkGJ1nM=; b=EY6SjRGxQxtXh7Ad6uG9Uo2+k74FMFTkW28WXs+U6hO/dLWibOMgO+SwVvC0AaSCbADktO TsgTiyxMsVtaDn5DHyEqQd0Z264WooXEFCuI5bQNi426QsC3ciSPsp8HMlCjpuDWHJ5UFk WEyZZmYRM4nv4BrgZawe7S23eCwZczQ= 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-554-MS9LL5FBM-6761VqKaR1Eg-1; Thu, 05 Sep 2024 10:26:08 -0400 X-MC-Unique: MS9LL5FBM-6761VqKaR1Eg-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 1618E1956069; Thu, 5 Sep 2024 14:26:07 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.34]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 091691955F45; Thu, 5 Sep 2024 14:26:04 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com Cc: Maxime Coquelin Subject: [PATCH 0/2] vhost: add VDUSE reconnection support Date: Thu, 5 Sep 2024 16:26:00 +0200 Message-ID: <20240905142602.1264345-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 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. ToDos indentified for v2: ======================== - More sanity checks at reconnection - Investigate reconnection struct versionning for backward compatibility. - Add EAL helper to get tmpfs path. Maxime Coquelin (2): vhost: add logging mechanism for reconnection vhost: add reconnection support to VDUSE lib/vhost/vduse.c | 280 +++++++++++++++++++++++++++++++----- lib/vhost/vhost.h | 40 +++++- lib/vhost/virtio_net.c | 8 ++ lib/vhost/virtio_net_ctrl.c | 2 + 4 files changed, 288 insertions(+), 42 deletions(-) -- 2.46.0