Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27944388rwd; Tue, 4 Jul 2023 10:04:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMiowPQjve0KopFzlkCCSEGWrnp2C4DfmUiFm9rBQlN2ubXulbi/G5trsdU0uEPUNUkc5p X-Received: by 2002:a17:903:41c7:b0:1b6:c139:9b23 with SMTP id u7-20020a17090341c700b001b6c1399b23mr13127643ple.26.1688490283318; Tue, 04 Jul 2023 10:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688490283; cv=none; d=google.com; s=arc-20160816; b=AT9p6NzH/szkU6rMvXnyAfmqZtpji/gN1d7SdhSyzDpR86X1T+1KyJmbcC2/n48bLt SVT/9gDtn5CsQpIcfu6SC3E3JTBn3n5jdS3PTatGp/39yu9q5c89LS6jAVenmKXyme3M YymVgVix7ECW+JNnofRBm5kfw7ZsmEMaxzetW9IPmGtVAeIV3p6fotz7Z8++JhM5fXn2 uEMEXHNZnhBiX9hSSWke6wSm1tYgmOLrr5MHm9emSNbOA5oCvxHGuNxZHtr8e5WEbDUE r0oZ0XBBCXKDpuVlHt3cZSFVz1inFoh92tinJj6/7MsVICRnEcUeXSoleHFzY6qwx5X4 0NaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hsGJKlN84iS87uycG5CF0XVpQDM2M+LhZ2wWSTw/Kvs=; fh=S1rZK6DPg0mAED4KjNm0cP4EEY87q6FXHFEeosELg0E=; b=UaYSOoFYVtHXQCeuwbTqtyLuSaBdiINpqLGDlO3pq2wzgzu9X7893eaUE93EZQxLM0 dGhYH0gzJEv5xfjhJ1bZKi/anlfdD8MTLeSwBj0H8FDiYY2Xib0Kh9BnSH/grW04kNX2 18KMUQnNzBLiZbCULJ3zwaNe0gbsj8KeqcCyELXjziUGpeYYOWuXtDL6JDYUo0EZy4Wt +5PibBIKunzPfRUis1bpPU1k3iFgYaD6BZ/HDoQD81Z5zzj/rRkXgZ2a2PyhhfPiGuk7 rUryFQlxRa9l3tSSIxA+a1bzP5guQIO45dKAIvRFajR4SH5Bdl93UY+wldhGFUxANgyP g7Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IyB5zdZg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a1709028bc300b001add2ba445asi20351585plo.259.2023.07.04.10.04.25; Tue, 04 Jul 2023 10:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IyB5zdZg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbjGDQlr (ORCPT + 99 others); Tue, 4 Jul 2023 12:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbjGDQlp (ORCPT ); Tue, 4 Jul 2023 12:41:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E80E5E7A for ; Tue, 4 Jul 2023 09:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688488857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hsGJKlN84iS87uycG5CF0XVpQDM2M+LhZ2wWSTw/Kvs=; b=IyB5zdZgsFbW6jCNcbMR5h5YgUOEZ2cmBuc08ky7svKkTz45a44LOjpq2sGGJdzGajDTq/ eGSjsWs40Q7q0vjUzMbZEOnpBgd6MnHWzOih+CUhp+jkUcybA70C7dNMg5Rrz5b6Qp6oxO mNKlsMlicTQT8yLdjIKFNdhCl5QUvJU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-159-fDHB3uUIPGW5sea3w8il6A-1; Tue, 04 Jul 2023 12:40:51 -0400 X-MC-Unique: fDHB3uUIPGW5sea3w8il6A-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 88AA329AA39A; Tue, 4 Jul 2023 16:40:51 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D830492B02; Tue, 4 Jul 2023 16:40:49 +0000 (UTC) From: Maxime Coquelin To: xieyongji@bytedance.com, jasowang@redhat.com, mst@redhat.com, david.marchand@redhat.com, lulu@redhat.com Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, Maxime Coquelin Subject: [PATCH v2 0/3] vduse: add support for networking devices Date: Tue, 4 Jul 2023 18:40:42 +0200 Message-ID: <20230704164045.39119-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 disable CVQ and features that depend on it (tested also with DPDK v23.07-rc1). [1]: https://lore.kernel.org/lkml/CACGkMEtgrxN3PPwsDo4oOsnsSLJfEmBEZ0WvjGRr3whU+QasUg@mail.gmail.com/T/ v1 -> v2 changes: ================= - Add a patch to disable CVQ (Michael) RFC -> v1 changes: ================== - Fail device init if it does not support VERSION_1 (Jason) Maxime Coquelin (3): vduse: validate block features only with block devices vduse: enable Virtio-net device type vduse: Temporarily disable control queue features drivers/vdpa/vdpa_user/vduse_dev.c | 36 ++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) -- 2.41.0