Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27693865rwd; Tue, 4 Jul 2023 06:38:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlESp2bWe63tao18NSNXsZ8XeBnTaRRtIvldg6UWw24gA69usw3/CvrMAAMX5VZlv1qruRWM X-Received: by 2002:a05:6808:140f:b0:3a3:a041:d2e1 with SMTP id w15-20020a056808140f00b003a3a041d2e1mr8124933oiv.10.1688477912112; Tue, 04 Jul 2023 06:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688477912; cv=none; d=google.com; s=arc-20160816; b=ETW8kux3tzUQlRcEEAUSQN0xBIkic8k2CVAi28dmQXK1Mvhpil1MqyRDKzn/yBLRS1 K5h/NYN93ttaxaH9NMLdMQ0FP/rqvqvJUU9/2Ca/L3okL46dKk0yX20jth6y241eSr9L 2wwt6p12GrAQBg+ytBm9P1U0/1OVRCr7najDRPxt89olT0zuVTEeWrdIe0tETDiSWU8t syRAMT5dVy9sWMrtUR9R6+Bv8tnb9rguGhzXxW/xPLb+aUb5Q7RGIjjGFqkO00adxGkP etAn1Zat2+HPwtbl2djSgZMjKWcRulazZV8zsbBYsIZ/rnoQZHWTrmFZC2TJt0v9uZXP oCJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kRXNwgWnFU9ZqZTTaRpnSrUAwofFRUsqVGfrl1t654U=; fh=gIUyQWPwtiuelx5sUeixgzn0+O0AxwfxHrSEeGGCGTM=; b=Q9TX9dKPtEzyeReL62XWS4Qy8bgy0ss7uT9rghLdydBT3EzRut76F6NbxvWq+iyZkP iuH0OT3h8gTfeXqML8NgSN/sSZs6VnfHhP2fAbhoUbZUqLXifMsA3zCRl+cQhY6cUKdW c02FqTmS+wZQAeFQCMxRpRsdXaXkRfLt/uWJsujWbGvp4mrK6rZj3XatM5pYXmYQTSCJ tJsXCrfshWXsdWfdLQM6ggmdcgeO15VjDUG1fSvCdKv4Vod/hYm8N2kJ+B/HtcbEUvYF 9EX6B96Iw/D/a1VprzH+olUkJqYkXdDdrThswL6zTUVMKaGOU/4mWCXgrXH+hzDzVHZ4 DcNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DjhPbrsj; 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 n37-20020a634d65000000b005406e76606csi20049843pgl.900.2023.07.04.06.38.17; Tue, 04 Jul 2023 06:38:32 -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=DjhPbrsj; 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 S230318AbjGDNTc (ORCPT + 99 others); Tue, 4 Jul 2023 09:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231593AbjGDNTQ (ORCPT ); Tue, 4 Jul 2023 09:19:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7A11731 for ; Tue, 4 Jul 2023 06:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688476651; 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: in-reply-to:in-reply-to:references:references; bh=kRXNwgWnFU9ZqZTTaRpnSrUAwofFRUsqVGfrl1t654U=; b=DjhPbrsjBiel1DFiH+uE1016na+qck9JjoiTRuUKuaJ2xT1hU0olF3r0W7oSdg/YVd23EZ 6p1oVebOr0cPhij158OQqSEo5BPPHS71URpzHvMXfU1k+jO2x3fqqzWPOu7H7esn9O/STJ RxYbtTW9YiYumqftKfM4T6JXCNJCdrw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-116-7jjORAkmPd25ysBKCGMs1Q-1; Tue, 04 Jul 2023 09:17:27 -0400 X-MC-Unique: 7jjORAkmPd25ysBKCGMs1Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5FAE41044594; Tue, 4 Jul 2023 13:17:27 +0000 (UTC) Received: from [10.39.208.32] (unknown [10.39.208.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6CC7140C2063; Tue, 4 Jul 2023 13:17:25 +0000 (UTC) Message-ID: <8128857f-e292-2e41-cdb9-9c5d4a2f79c7@redhat.com> Date: Tue, 4 Jul 2023 15:17:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 0/2] vduse: add support for networking devices Content-Language: en-US To: "Michael S. Tsirkin" Cc: Jason Wang , xieyongji@bytedance.com, david.marchand@redhat.com, lulu@redhat.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, xuanzhuo@linux.alibaba.com, eperezma@redhat.com References: <20230627113652.65283-1-maxime.coquelin@redhat.com> <20230702093530-mutt-send-email-mst@kernel.org> <571e2fbc-ea6a-d231-79f0-37529e05eb98@redhat.com> <20230703174043-mutt-send-email-mst@kernel.org> <0630fc62-a414-6083-eed8-48b36acc7723@redhat.com> <20230704055840-mutt-send-email-mst@kernel.org> From: Maxime Coquelin In-Reply-To: <20230704055840-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 7/4/23 11:59, Michael S. Tsirkin wrote: > On Tue, Jul 04, 2023 at 10:43:07AM +0200, Maxime Coquelin wrote: >> >> >> On 7/3/23 23:45, Michael S. Tsirkin wrote: >>> On Mon, Jul 03, 2023 at 09:43:49AM +0200, Maxime Coquelin wrote: >>>> >>>> On 7/3/23 08:44, Jason Wang wrote: >>>>> On Sun, Jul 2, 2023 at 9:37 PM Michael S. Tsirkin wrote: >>>>>> >>>>>> On Tue, Jun 27, 2023 at 01:36:50PM +0200, 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. >>>>>>> >>>>>>> [1]: https://lore.kernel.org/lkml/CACGkMEtgrxN3PPwsDo4oOsnsSLJfEmBEZ0WvjGRr3whU+QasUg@mail.gmail.com/T/ >>>>>> >>>>>> Jason promised to post a new version of that patch. >>>>>> Right Jason? >>>>> >>>>> Yes. >>>>> >>>>>> For now let's make sure CVQ feature flag is off? >>>>> >>>>> We can do that and relax on top of my patch. >>>> >>>> I agree? Do you prefer a features negotiation, or failing init (like >>>> done for VERSION_1) if the VDUSE application advertises CVQ? >>>> >>>> Thanks, >>>> Maxime >>> >>> Unfortunately guests fail probe if feature set is inconsistent. >>> So I don't think passing through features is a good idea, >>> you need a list of legal bits. And when doing this, >>> clear CVQ and everything that depends on it. >> >> Since this is temporary, while cvq is made more robust, I think it is >> better to fail VDUSE device creation if CVQ feature is advertised by the >> VDUSE application, instead of ensuring features depending on CVQ are >> also cleared. >> >> Jason seems to think likewise, would that work for you? >> >> Thanks, >> Maxime > > Nothing is more permanent than temporary solutions. > My concern would be that hardware devices then start masking CVQ > intentionally just to avoid the pain of broken software. Got it, I'll add a patch on top that filters out CVQ feature and all the features that depend on it. Thanks, Maxime > >>> >>> >>>>> Thanks >>>>> >>>>>> >>>>>>> RFC -> v1 changes: >>>>>>> ================== >>>>>>> - Fail device init if it does not support VERSION_1 (Jason) >>>>>>> >>>>>>> Maxime Coquelin (2): >>>>>>> vduse: validate block features only with block devices >>>>>>> vduse: enable Virtio-net device type >>>>>>> >>>>>>> drivers/vdpa/vdpa_user/vduse_dev.c | 15 +++++++++++---- >>>>>>> 1 file changed, 11 insertions(+), 4 deletions(-) >>>>>>> >>>>>>> -- >>>>>>> 2.41.0 >>>>>> >>>>> >>> >