Message ID | 20240109111025.1320976-1-maxime.coquelin@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp35411dyi; Tue, 9 Jan 2024 03:10:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxQI5o+xpDf9i70XOqMP+2n9ryKQFKkFEDBwik57RP2AdWWEAo/ju1xkpB+DGF1PVs2uKB X-Received: by 2002:aa7:ce04:0:b0:557:4797:bcb9 with SMTP id d4-20020aa7ce04000000b005574797bcb9mr2795069edv.77.1704798659115; Tue, 09 Jan 2024 03:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704798659; cv=none; d=google.com; s=arc-20160816; b=RrNUewF15+n+xR0NThxFN38NIDct/3b/yAq19y5p1ZS65W9zU5J6+ijQqjo0uCXOGt A35UxkRLEi+YLNoeW1Pr9ojJQztUfYs+QUFu1/MPz+ZgmgnfcB4+7TcTK3bLso/9QnBr nOPOgxNhm6hYVgcmnbnHQ7M0QBTLIzQr8z9fB0SazL/rsJxgc4HwjB9qGPNF4zJSzFxP BscVFvDuMZVt4ukIo/ohSKcvqq4gyzgVxrKJNhGRyxQvOAwgUijj0asvjs3ZwH3ff/DK Eda16Jw76h+UZ9baNxrJnbqfyqntjg6kvw0qYNk+xVE2p/ms3M0Nnv2VyOiWQ2bp3/d7 w/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CwAPOPDXtJGot4Xweu+SW6rgO4qJDtpBoQj6gViyR30=; fh=+YAWGNokPfoHg1oXKIXy6skWlEnaUutNlHrvMBZ3/ec=; b=t1YWkCrdvTOYh/mGZooWe3YG2IAEMfuuQ8fhREjTN7m2Pt3mCDKmL8avnwzJVZxD3u +4NvIskvo1tud1Oefu9Ymfx1nuJVJcL0X9AmmEgO02LxwTsqyFcg7ArJrRqxJe48L6ij JrJeQLgj4PwKHPXBMzBDn0tGbf5ns5t41OPozMkgM0h5eqSjF3CWDGRVkzNT1844UDRE lsMDi+qLLsYayeL9W/0f0LNtRs3KaGG0gWMqVZdP8jfAnlaNRF6eGUUT2f8F1f5pAQAk ORxudYd9IXzKzmXcIvbkAOY6jBmyzunGZB3F3yRsM1UsZ3oeQl6oNQsKNrCXXpCOhIax B9XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IWxwy4/4"; spf=pass (google.com: domain of linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ee52-20020a056402293400b0055417c6a836si663842edb.20.2024.01.09.03.10.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:10:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IWxwy4/4"; spf=pass (google.com: domain of linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20745-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 61A9F1F25072 for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 11:10:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E8C236B1E; Tue, 9 Jan 2024 11:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IWxwy4/4" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47E4C33CDF for <linux-kernel@vger.kernel.org>; Tue, 9 Jan 2024 11:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704798634; 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=CwAPOPDXtJGot4Xweu+SW6rgO4qJDtpBoQj6gViyR30=; b=IWxwy4/409xXtJpEpa2AQZ72I55VbCPxxQLBFXrgLTVClcdATdMjtht6QliCwXvl5yoFi7 HB+vn01mGnlWwry1WD4OAiS/Rd+4C1crnfLOfGHHAJLmdfYrFjijQyn65mX0yBbmK1rVq5 VFiQbLtwHoJr4MRLsQetbgXwxGBGGQQ= 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-21-jBduOfQAN_CyAQcEDmBdyw-1; Tue, 09 Jan 2024 06:10:31 -0500 X-MC-Unique: jBduOfQAN_CyAQcEDmBdyw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 BF16385A588; Tue, 9 Jan 2024 11:10:30 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED2AE492BE6; Tue, 9 Jan 2024 11:10:28 +0000 (UTC) From: Maxime Coquelin <maxime.coquelin@redhat.com> To: mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, xieyongji@bytedance.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, david.marchand@redhat.com, lulu@redhat.com Cc: Maxime Coquelin <maxime.coquelin@redhat.com> Subject: [PATCH v7 0/3] vduse: add support for networking devices Date: Tue, 9 Jan 2024 12:10:22 +0100 Message-ID: <20240109111025.1320976-1-maxime.coquelin@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787610959247059761 X-GMAIL-MSGID: 1787610959247059761 |
Series |
vduse: add support for networking devices
|
|
Message
Maxime Coquelin
Jan. 9, 2024, 11:10 a.m. UTC
This small series enables virtio-net device type in VDUSE. With it, basic operation have been tested, both with virtio-vdpa and vhost-vdpa using DPDK Vhost library series adding VDUSE support using split rings layout (merged in DPDK v23.07-rc1). Control queue support (and so multiqueue) has also been tested, but requires a Kernel series from Jason Wang relaxing control queue polling [1] to function reliably, so while Jason rework is done, a patch is added to fail init if control queue feature is requested.(tested also with DPDK v23.11). Changes in v7: ============== - Fail init only if VIRTIO_NET_F_CTRL_VQ is requested. - Convert to use BIT_ULL() macro - Rebased Changes in v6: ============== - Remove SELinux support from the series, will be handled in a dedicated one. - Require CAP_NET_ADMIN for Net devices creation (Jason). - Fail init if control queue features are requested for Net device type (Jason). - Rebased on latest master. Changes in v5: ============== - Move control queue disablement patch before Net devices enablement (Jason). - Unify operations LSM hooks into a single hook. - Rebase on latest master. Maxime Coquelin (3): vduse: validate block features only with block devices vduse: Temporarily fail if control queue feature requested vduse: enable Virtio-net device type drivers/vdpa/vdpa_user/vduse_dev.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-)
Comments
Hi Jason, It looks like all patches got acked by you. Any blocker to queue the series for next release? Thanks, Maxime On 1/9/24 12:10, Maxime Coquelin wrote: > This small series enables virtio-net device type in VDUSE. > With it, basic operation have been tested, both with > virtio-vdpa and vhost-vdpa using DPDK Vhost library series > adding VDUSE support using split rings layout (merged in > DPDK v23.07-rc1). > > Control queue support (and so multiqueue) has also been > tested, but requires a Kernel series from Jason Wang > relaxing control queue polling [1] to function reliably, > so while Jason rework is done, a patch is added to fail init > if control queue feature is requested.(tested also with DPDK > v23.11). > > > Changes in v7: > ============== > - Fail init only if VIRTIO_NET_F_CTRL_VQ is requested. > - Convert to use BIT_ULL() macro > - Rebased > > Changes in v6: > ============== > - Remove SELinux support from the series, will be handled > in a dedicated one. > - Require CAP_NET_ADMIN for Net devices creation (Jason). > - Fail init if control queue features are requested for > Net device type (Jason). > - Rebased on latest master. > > Changes in v5: > ============== > - Move control queue disablement patch before Net > devices enablement (Jason). > - Unify operations LSM hooks into a single hook. > - Rebase on latest master. > > Maxime Coquelin (3): > vduse: validate block features only with block devices > vduse: Temporarily fail if control queue feature requested > vduse: enable Virtio-net device type > > drivers/vdpa/vdpa_user/vduse_dev.c | 24 ++++++++++++++++++++---- > 1 file changed, 20 insertions(+), 4 deletions(-) >
On Thu, Feb 01, 2024 at 09:34:11AM +0100, Maxime Coquelin wrote: > Hi Jason, > > It looks like all patches got acked by you. > Any blocker to queue the series for next release? > > Thanks, > Maxime I think it's good enough at this point. Will put it in linux-next shortly.
On 2/1/24 09:40, Michael S. Tsirkin wrote: > On Thu, Feb 01, 2024 at 09:34:11AM +0100, Maxime Coquelin wrote: >> Hi Jason, >> >> It looks like all patches got acked by you. >> Any blocker to queue the series for next release? >> >> Thanks, >> Maxime > > I think it's good enough at this point. Will put it in > linux-next shortly. > Thanks Michael!
Hello Michael, On 2/1/24 09:40, Michael S. Tsirkin wrote: > On Thu, Feb 01, 2024 at 09:34:11AM +0100, Maxime Coquelin wrote: >> Hi Jason, >> >> It looks like all patches got acked by you. >> Any blocker to queue the series for next release? >> >> Thanks, >> Maxime > > I think it's good enough at this point. Will put it in > linux-next shortly. > I fetched linux-next and it seems the series is not in yet. Is there anything to be reworked on my side? Thanks, Maxime