Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp253377rdd; Tue, 9 Jan 2024 03:10:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF51aHvHoNiXLaq6qtdZc0pg6dru0fVqnTj0pbyo2LwbNTH6cHpqyV0U2vInk+CR1sQt8Qd X-Received: by 2002:a0c:ebce:0:b0:680:f8c4:6789 with SMTP id k14-20020a0cebce000000b00680f8c46789mr4990539qvq.32.1704798645443; Tue, 09 Jan 2024 03:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704798645; cv=none; d=google.com; s=arc-20160816; b=RV1gwZeQGTloFK7JDUSuUlpn36ODvfv5l8LDg4VTeDIGyp+Ex3UEe4A+VJ5H9KPjI7 NghmDK6/u4tqSXF1AKXhQk18TZA3Agsdb8pRIYpxrwv9mfV02pWAiwbg2Btx/Ji7rarp yinAFChj/1RArMkNm7n61qT24SCr0xQMRY8E8xD/DdZRnYibCpa89AlzqlSt0sH9xmL1 nabiRxd1/geAse+bYIMJzCCT8A5sFVX9Geo73Q50T3lXUxZafCLBJjwtJ3LqbHX1hHjO /n1jN+A+v38wSAkj0N91qerc8ZM00daJVB6axRB6W6qxxSKk0853debfDy4Wg80U1RQI fATA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b26-20020a0cb3da000000b0068059ec19b2si2081621qvf.73.2024.01.09.03.10.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20745-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 32E3D1C213F7 for ; Tue, 9 Jan 2024 11:10:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E3B236B02; Tue, 9 Jan 2024 11:10:37 +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 ; 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 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 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: List-Subscribe: List-Unsubscribe: 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 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(-) -- 2.43.0