From patchwork Thu Feb 29 12:24:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 716 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 3AA6A43C36; Thu, 29 Feb 2024 13:25:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05299402B4; Thu, 29 Feb 2024 13:25:09 +0100 (CET) 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 D17DC402AF for ; Thu, 29 Feb 2024 13:25:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709209507; 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=tEyO1fcZaF04HpYt1+8wcph2JrwV2W0ntqhXkQj+WAQ=; b=EegXbtMpDcNMZgpdTqMp6iQJTOBT/rsNDdAtUj2/Pik6xyCP2A2OVHef98l76OFswzQn2/ evmAkQyd3a/wMbrQCzgGgZb0VIJHvfdwihia7wWe9lADtCjF7J6CJPuGubLg/Sg/NMtUeb eTANiFLmDvgNlEzsaBFZQRseEa+KrTg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-mWvx-UicMoOWUb9zePtMiw-1; Thu, 29 Feb 2024 07:25:05 -0500 X-MC-Unique: mWvx-UicMoOWUb9zePtMiw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 69A7B10651AC; Thu, 29 Feb 2024 12:25:05 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 25EE21121312; Thu, 29 Feb 2024 12:25:03 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com Cc: Maxime Coquelin Subject: [PATCH 0/7] vhost: FD manager improvements Date: Thu, 29 Feb 2024 13:24:55 +0100 Message-ID: <20240229122502.2572343-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 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 This series aims at improving the Vhost FD manager. First patch is a fix necessary to have VDUSE devices destroy to work. I expect it to be taken into v24.03 release. The rest of the series are various improvements to the FD manager that can wait v24.07 release. Maxime Coquelin (7): vhost: fix VDUSE device destruction failure vhost: rename polling mutex vhost: make use of FD manager init function vhost: hide synchronization within FD manager vhost: improve fdset initialization vhost: convert fdset sync to eventfd vhost: improve FD manager logging lib/vhost/fd_man.c | 313 +++++++++++++++++------ lib/vhost/fd_man.c.orig | 538 ++++++++++++++++++++++++++++++++++++++++ lib/vhost/fd_man.h | 41 +-- lib/vhost/socket.c | 37 +-- lib/vhost/vduse.c | 51 +--- 5 files changed, 800 insertions(+), 180 deletions(-) create mode 100644 lib/vhost/fd_man.c.orig