Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1289564rwb; Wed, 7 Dec 2022 10:56:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7cOhb5Y8oxOTE2dqeZkCCvBLM3wzLQJHmJFtDzpbEoD9KOHbyZ/EqMuhGJFlMIOS91+jN7 X-Received: by 2002:a17:906:1614:b0:78d:4e5b:ffaa with SMTP id m20-20020a170906161400b0078d4e5bffaamr60421609ejd.455.1670439415805; Wed, 07 Dec 2022 10:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670439415; cv=none; d=google.com; s=arc-20160816; b=Sa/Rz0yebcEbRnRI0LtY2xSedrFXjBqX6sRNzWWGJMVrKjREMPM7MxSoz3fCfnUh7R 8WASn0hBTN2KsSX8+jmNdpEQnVslPRNt0a8BD4S6Gd7884cUb7UGLhxLa60HT/hPV82y AxTHFBNjve2dkNjIhcnJQGFoldAiA2MtNKzLNnTF4HYp2jipcthTRxBz9IXK1Zohu5Ds MiBZ4nWzzO9gdI0q4/pPjg7Z3MJG1uxg4jTjjeWADiyk+5c9+QxdZSOvdrg9lZcLKRTb wJJCk3jgq2Q11yQwbb5rs+oJGSwN00DczirEnRRFBLcityFxSdrSDdlHnf6udt394tm+ e2cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=V7UOXlrIQM+DeLCjauT2NFD9iSDfL7jVpFYnpCrBdbw=; b=RGCPZ5hW6SuAkcW/DZGFixYq0C4zje1qXAlHbGCJ0SYCkhALvU7cG18jwzro30Bg25 Jv+OvCUACWiF115vS4iSzOZdhgmkMVmSxGTWQMTyBWoeyUb/YsWqpfurrB27VHCnB2Rc K5XUFOG5dosUzi3/l+NmJZshurTyaiZIrZE02DvT9gnWaikuN3ZJ5/lbtCX+NLp7wQG8 ZfhyyLEDIitkWBL3mwWoKWSarqv0GzmSP9gfFcRtsSyYugl5/F2QUYu5xrIHwD3FM6EK TPVm0DriSatxmWi+/KCv6G47pDvAfG2IEN0jdhbg9IzU2cyNiBhO5aMvIsL9G3s0uSEb 7HNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 hv10-20020a17090760ca00b007a6843971c0si11349003ejc.190.2022.12.07.10.56.37; Wed, 07 Dec 2022 10:56:55 -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; 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 S229902AbiLGSe1 (ORCPT + 74 others); Wed, 7 Dec 2022 13:34:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiLGSd4 (ORCPT ); Wed, 7 Dec 2022 13:33:56 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DBDE22E; Wed, 7 Dec 2022 10:33:40 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id D192568AFE; Wed, 7 Dec 2022 19:33:33 +0100 (CET) Date: Wed, 7 Dec 2022 19:33:33 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , 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: <20221207183333.GA7049@lst.de> 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: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 01:31:44PM -0400, Jason Gunthorpe wrote: > > 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? The same I've used through this whole thread: controlling and controlled function. > So I don't think I've learned anything more about your objection. > > "fundamentally broken" doesn't help The objection is that: - in hardware fundamentally only the controlling funtion can control live migration features on the controlled function, because the controlled function is assigned to a VM which has control over it. - for the same reason there is no portable way to even find the controlling function from a controlled function, unless you want to equate PF = controlling and VF = controlled, and even that breaks down in some corner cases - if you want to control live migration from the controlled VM you need a new vfio subdriver for a function that has absolutely no new functionality itself related to live migration (quirks for bugs excepted). So by this architecture you build a convoluted mess where you need tons of vfio subdrivers that mostly just talk to the driver for the controlling function, which they can't even sanely discover. That's what I keep calling fundamentally broken.