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 69B1845A12; Mon, 23 Sep 2024 21:52:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B6C2402CF; Mon, 23 Sep 2024 21:52:01 +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 E4A2E402B4 for ; Mon, 23 Sep 2024 21:51:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727121119; 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=9/f3I/ECupDnN41W/6QltGCdfFrXkDnIwpvs9NlCn6M=; b=BxPA8r3JUecQc5zBSYPGcPDqDc0cP+AnRkJcvt2aEUNoUc0dXoaevZkEWgOkWuBd1y33Iy s06KUNOIcroGwK0j+Rjf9DgQO1iEsURrKU3C5ZG5KFoD18OSYfRS0LfoK80xbJqU+J5yaQ yzF6jEe5Cijiq1U52dtAVwzoJH2F1To= Received: from mx-prod-mc-01.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-151-FisitgS2P_GyYyqF4DfCaw-1; Mon, 23 Sep 2024 15:51:58 -0400 X-MC-Unique: FisitgS2P_GyYyqF4DfCaw-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.12]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6F100195FE0E; Mon, 23 Sep 2024 19:51:57 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.8]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CC6F019560AA; Mon, 23 Sep 2024 19:51:54 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com Cc: Maxime Coquelin Subject: [PATCH v3 0/2] vhost: add VDUSE reconnection support Date: Mon, 23 Sep 2024 21:51:49 +0200 Message-ID: <20240923195151.73527-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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 v3: ============== - Fixed missing avail index updates (David) - Fixed typos in commit message (David) - Applied R-by's 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.c | 2 + lib/vhost/vhost.h | 41 ++++- lib/vhost/vhost_user.c | 4 + lib/vhost/virtio_net.c | 8 + lib/vhost/virtio_net_ctrl.c | 2 + 6 files changed, 322 insertions(+), 43 deletions(-) -- 2.46.0