Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1193479rwb; Wed, 7 Dec 2022 09:40:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fCNmNkahWB/D3kctuSIeXw6rg1ir2kKy+ZDBu6ipdWfgB21jX04sqFUvI5zgiC301+l9h X-Received: by 2002:a17:906:2c16:b0:7c0:dcc7:9e92 with SMTP id e22-20020a1709062c1600b007c0dcc79e92mr14959310ejh.693.1670434829379; Wed, 07 Dec 2022 09:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670434829; cv=none; d=google.com; s=arc-20160816; b=nVawOi0dTBaSYRTxmUIafK6y6QUJefUsT/ds6oCIYKnRZYh8u86aQd2H0bTODTUh43 jyRxbSRJOPg6IwKEr30KHPPqv7EWH/4KdmP8KT6Nsz2yg/WbPeCdVOK6C+9YuzRSme2G vGzrusw07LaazUvG+BjZG7SjHXmu2QDGLRN9Wa2IpabD8s263rH+ZVcwHvbp6s5lhySt yaOZo5Sq03fzzxPse5p6CtCVW1zdAnv0yE3l3PZv2sQNP10tqtpRn2EdAGA19T89aOJN iNcdw3W51GPDS0yyvdJeduDXbcT9oWoyBFaM24FBlx5GR/7J/3HNtwwdcrAQ2ptOuMGu Avlg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GGYm/U8zQZjJljcYBsuBB43oBO+UowQVbQ4PB8XzHy4=; b=ptUbbYl+5iYpL31vmX0wAGS7vZ8+3UXW/WKKpAKcIV6qkWDpB7zDml+qBz2/QP0u0V MKd+HzvNz9cyKDPmCOBI4+IyMZKu6ukyT2w2XYgYdL3UEVGdCxYPe8m1iR9wanDt1bTG kmPjQ+JMWlMmTwdAdLF8O1yQmfPAacZ/e/+IO/X8fst8IwYCKQFeqYV90bhtOTCgyIVy hetXLtwWUyAdeBcPaf/UiLc1qdmNzFu3YPik6Zs8PstKddMU4SSJWzptBpLA+52Oj7mt SbdmMJ2aiBrdTLMnbaKSWgCzWI5/CoUeNEM3df0UOfCQOBZQ7MeqhH5J5oHCWkYqsJR5 ATtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=JVYHn2Uq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a1709063c4600b007c0a6ffebbdsi12023052ejg.722.2022.12.07.09.40.11; Wed, 07 Dec 2022 09:40:29 -0800 (PST) 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=@ziepe.ca header.s=google header.b=JVYHn2Uq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbiLGRcC (ORCPT + 76 others); Wed, 7 Dec 2022 12:32:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiLGRbr (ORCPT ); Wed, 7 Dec 2022 12:31:47 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D201FE082 for ; Wed, 7 Dec 2022 09:31:46 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id x28so15615078qtv.13 for ; Wed, 07 Dec 2022 09:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GGYm/U8zQZjJljcYBsuBB43oBO+UowQVbQ4PB8XzHy4=; b=JVYHn2Uq7dr+ybmwbABL740dori9GKB6509NnTrMEa0HWmWilQWCIsVF0ukAsjG0NJ QB//ZxGk2bJyMjHgSdkpktwlHmE19dA8spOKyggVH/cdq3YhnCzM1OQu10Am4JJ/l6b9 2nSL+gRXQWCEy3K+o7LxOw8fQnrdBysQlRwgT7fXE1KZKfzPNG6gD8G5T0vGKFy/spxj FSD0L66l01my1N0CgZoGKZTtdXiH42Kst31L7UDnWFgCpMa2vTSyYkSWzRCMEwZlVv6M KWPgTxnjaLbHpwVKG8Sc8MS+9eVKpTy4TSwNughyBUWBb5GB6feee5Zf7HbiedQI/CPq GFyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to: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=GGYm/U8zQZjJljcYBsuBB43oBO+UowQVbQ4PB8XzHy4=; b=HN3delsdsx3r02qcnJiNzzJpuvRjMeYHGlD3Ogac7d2EaOxB2OHwwu3dS2RY43b1nk FKKpWk7rEPNc1I1VpfZXrdSTICX811529lxeyoW8jaO5U4YFTmyguVduHfXh7I+Q55wR HHOow+jpkvE4IbMEhipnIRFGlOQnGGycrB1ttfQ7ngHwwe0zRkrDFqHEQF1J++OTWHKI n0c0mPlOStbpiWbU3GU/yMkpll6PCVrv8yXU5ffgquylb7ANOnVDCHg5pp0RYFh5n+u0 vjHDIbTTLKTqRCR8Md774USyr6e43WWPwxlVXHzweI7qQ+XVQH2/IUgesytf8FfSqWJh nbaQ== X-Gm-Message-State: ANoB5pnrtTMWjLA/lM+dkuZYTYlmdij9bcmCAFsCJPi0LOZdCu4sh8pz pHDDB+dmmarvsjf0jgGi1IM0kw== X-Received: by 2002:a05:622a:17cb:b0:3a6:21fd:6c9a with SMTP id u11-20020a05622a17cb00b003a621fd6c9amr71657357qtk.545.1670434305934; Wed, 07 Dec 2022 09:31:45 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-47-55-122-23.dhcp-dynamic.fibreop.ns.bellaliant.net. [47.55.122.23]) by smtp.gmail.com with ESMTPSA id t3-20020a05620a450300b006eea4b5abcesm18442401qkp.89.2022.12.07.09.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 09:31:45 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1p2yGm-005IGO-HV; Wed, 07 Dec 2022 13:31:44 -0400 Date: Wed, 7 Dec 2022 13:31:44 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: Lei Rao , kbusch@kernel.org, axboe@fb.com, kch@nvidia.com, sagi@grimberg.me, alex.williamson@redhat.com, cohuck@redhat.com, yishaih@nvidia.com, shameerali.kolothum.thodi@huawei.com, kevin.tian@intel.com, mjrosato@linux.ibm.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, kvm@vger.kernel.org, eddie.dong@intel.com, yadong.li@intel.com, yi.l.liu@intel.com, Konrad.wilk@oracle.com, stephen@eideticom.com, hang.yuan@intel.com Subject: Re: [RFC PATCH 1/5] nvme-pci: add function nvme_submit_vf_cmd to issue admin commands for VF driver. Message-ID: References: <20221206153811.GB2266@lst.de> <20221206165503.GA8677@lst.de> <20221207075415.GB2283@lst.de> <20221207135203.GA22803@lst.de> <20221207163857.GB2010@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221207163857.GB2010@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Wed, Dec 07, 2022 at 05:38:57PM +0100, Christoph Hellwig wrote: > On Wed, Dec 07, 2022 at 11:07:11AM -0400, Jason Gunthorpe wrote: > > > And while that is a fine concept per see, the current incarnation of > > > that is fundamentally broken is it centered around the controlled > > > VM. Which really can't work. > > > > I don't see why you keep saying this. It is centered around the struct > > vfio_device object in the kernel, which is definately NOT the VM. > > Sorry, I meant VF. Your continued using of SR-IOV teminology now keeps > confusing my mind so much that I start mistyping things. Well, what words do you want to use? Regardless of VF/VM, it doesn't matter - my point is that the vfio_device is the hypervisor control for *whatever* is under the vfio_device and it is not desirable to break it up along arbitrary HW boundaries. I've given lots of reasons why not to do this now. I strongly suspect it can work technically - as ugly as it is Pensando shows an approach. So I don't think I've learned anything more about your objection. "fundamentally broken" doesn't help It is a major point, because if we are going to have to rip apart all the uAPI we built here and are completing the qemu work for, we need to come to an understanding very soon. And given how difficult it has been to get to this point, I want a *really* good reason why we have to start again, and rewrite all the drivers that exist and are coming. Jason