Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27483115rwd; Tue, 4 Jul 2023 03:43:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4ndohhyi1xyZwF4NDNIWUiLyt0r+JYakGUiA6TFUgfy+qbGeRd1HsuQ8607MfPTTjPqBg X-Received: by 2002:a92:c608:0:b0:33b:dcbf:e711 with SMTP id p8-20020a92c608000000b0033bdcbfe711mr14244702ilm.8.1688467420612; Tue, 04 Jul 2023 03:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688467420; cv=none; d=google.com; s=arc-20160816; b=S8T7x2xZQ/yWiU0DdXK2OP6Wr1tQ/k1S/Nli/7gJr4qs9RlNMrZZP+BXIrLhRrwrWa 3vhkd9cwdCg0kmQXcyaV8z45mgf0Prl9v5ltVBT9sBVq65dDUWmHty1GUp5wyTmTqKxh IJtDmDFMbR4uh8IOcWvfEAcrTZFJmoTEyG0R+ldkQfg59GQv94/AhRxldwDMtajoL1bt GQUkGqCV86r0u02k2mKaDx2Vx3gxw6UcqizUpgCBB2m1jJBJ1EA3bfpnaxf4OzpYVyK8 ybHOaDkdG5v39+j464lndS0TDjL48PqbML5do5j8a0lndO+Jh4zril/YADkkTpX2CCnA tNbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=892aSalStYsQtwptK7t1c8HIhOOHEUNVf5ArLGswb+M=; fh=MFscp1rs6rfKfSIbnvc6jqA3QlL/7lxZf8P+UVhErtA=; b=Kxf19CAsR05guSmngL7Hvc8ew+1K4Qh544XBw7i63Dgl0jji8KuyOsRN+EaGjzga7Q CFUgCi3jK041OpFcVYcG8+cdPTPU9TNjaiAjlVNkVJlUVmJYN28RkUJIRgKn/KetpynO yJ8dMP4iOtgr7Jkfk6RmitCfRSv8Y1Stzmp+qU7OhK+bhukXn8pjdC+6lhjaSc8jnvm5 H6UuRXonEFc1HAHSdPraRB6aTXDL/BBS/TMAJiMKnugsmXQOheDiHVBLCCfL+cPRdqLb Rouqe828jX5QfiHl2ej3+cLeikYYdcMXuCHW4LzfFmn/pkz7lH/CkgWad3nppEYXbbl1 r/Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=clAFMLIO; 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 d26-20020a631d5a000000b0054fef4ea777si20570755pgm.853.2023.07.04.03.43.26; Tue, 04 Jul 2023 03:43:40 -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=clAFMLIO; 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 S231424AbjGDKAW (ORCPT + 99 others); Tue, 4 Jul 2023 06:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjGDKAU (ORCPT ); Tue, 4 Jul 2023 06:00:20 -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 78807E5 for ; Tue, 4 Jul 2023 02:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688464774; 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=892aSalStYsQtwptK7t1c8HIhOOHEUNVf5ArLGswb+M=; b=clAFMLIO/SSTyVkTTgBIlXftRafs8ivjSjjfw2k7bslktXiGb1KMroyZysOSzOVl5cVQK1 F9DF73xSzIYV4DC3B15iTg2Y0AOwnsrVJf12Ni9Kd7WQmnYKLEpV9RVXu5V0ed/1gEdghp bADxt142SO+hF2K9uPDqmwumY9yLqTg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-pk1VdRpcNjWvH_AY0oExgg-1; Tue, 04 Jul 2023 05:59:33 -0400 X-MC-Unique: pk1VdRpcNjWvH_AY0oExgg-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-31273e0507dso3130545f8f.3 for ; Tue, 04 Jul 2023 02:59:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688464772; x=1691056772; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=892aSalStYsQtwptK7t1c8HIhOOHEUNVf5ArLGswb+M=; b=KKhWpDHf67cqYFu9cQ+fuWS8iyHXUPXugCaR/y8Be4FjXD6l9s409PbkyIT9gCAQbb Bbmuvtc66+eSH3E9aK+UEHCFt/RZ9FxHMwhZ0gakjEWOHUhT/EeOxtqfiByfLF58Urk/ xDp1CKKrDqUSZ0vX0czSN6biMZ//wpJIxvLf6pgrHhJs0JDzv4mx8RSpf5jxUHcvqc7t 3IyKngFycCzHhdZ2DRlqY4/EMUXoX3pQNodPxORKpN7un+1xOK5o96fnRZ/Y6TmUABPN SWsmc/BRA9cxYjh7AOEdpx/tBqVC547SUNykhn5FGZtKZaMiYS092e9ZMgvRyHOQ4RFF 3UYg== X-Gm-Message-State: ABy/qLZ45cA5Fva4Hl4rvDszKi8JJWqxbEk2RMjNh/j9Y/P4qWRX9el0 tzs3kZxA5khrA8li6ofFR7GQiAHqEQz8iurg9TFIs1OJkfIc79R8v9EbbH5w0S8zQEOxSMc4tXF lUF+Bxjc3l0w3kNVQq55jy2Ru X-Received: by 2002:a5d:61d1:0:b0:314:12c:4322 with SMTP id q17-20020a5d61d1000000b00314012c4322mr9924369wrv.4.1688464772566; Tue, 04 Jul 2023 02:59:32 -0700 (PDT) X-Received: by 2002:a5d:61d1:0:b0:314:12c:4322 with SMTP id q17-20020a5d61d1000000b00314012c4322mr9924352wrv.4.1688464772214; Tue, 04 Jul 2023 02:59:32 -0700 (PDT) Received: from redhat.com ([2.52.13.33]) by smtp.gmail.com with ESMTPSA id x8-20020a5d60c8000000b003142b0d98b4sm8771005wrt.37.2023.07.04.02.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 02:59:31 -0700 (PDT) Date: Tue, 4 Jul 2023 05:59:28 -0400 From: "Michael S. Tsirkin" To: Maxime Coquelin 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 Subject: Re: [PATCH v1 0/2] vduse: add support for networking devices Message-ID: <20230704055840-mutt-send-email-mst@kernel.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0630fc62-a414-6083-eed8-48b36acc7723@redhat.com> 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=ham 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 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. > > > > > > > > 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 > > > > > > > > > > >