Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7525916rwb; Tue, 6 Dec 2022 06:54:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/A+UbUfM9V13bzwVp6gsXoA7q2dRsU5dWGNskaL+6iySCto3iDXHpMEYEKgcmnwL20pTG X-Received: by 2002:a17:90b:711:b0:210:9858:2b2c with SMTP id s17-20020a17090b071100b0021098582b2cmr96102240pjz.191.1670338463177; Tue, 06 Dec 2022 06:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670338463; cv=none; d=google.com; s=arc-20160816; b=I7bKFP2WHsatGRfemoBORQ9zWHb3+qO7J0VKVih98WDo4PGhQkATEqtxB7ZeImddUq nKi2hW0w/fcn1uoNNbWXxcLfwqbfXHWEAdWBmuuoRol0+DBJTpzdbnLU7wiQPQQk9PPq aWLaYiM8bS/TxXB3A50rpCbgOonKdP4CrEDmHY8K8kiUQzZ2eKtjOL0Kj/P3uuqHwdV0 NmAkpXUv8KsQ5Otfs5jfDPdW5tWyGUEcvbjSrUHi8L0BDgU7OHAKIfd6aJYMfeLOdLMB 8R7xPy6b4xAOeO4XPy7nbrq70zFGF79NvB/twQQFFvskKMXjbwgNjiPttMKwjxzZ09bi j0vg== 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=vVONVhFIMozKQMIv6+ud8+0mfKas86XM8jPahKm21a4=; b=Di/H1YIX78M/x3HNOqDLHFQ6nSrh7kquZyItSIYNvkMGSK7y37RV0y/p28eNpk8Td8 zTylq7PWUl1aow4VZABhqnskBH5mG0M3r//WIGO/0uGT4BA0fHrRujr8Yf4e+dfIqHrj BCpsmCpuPtqnGeUFQZTMHsk6NMCsxmV0P+mOmSaWlzKtC1N3Bsz8F6teqxxjH1gB3BVJ F6vtvqYnl8sOIUnMmIGWIXTdK9JsvPVctUtmykde9ZhH6gdvElCA8ChuMKMU0tJBaibk sPbmDRB33dnTkEQL2IgIgYGUQ8aZCdO9TDvGLV7TORnWOe6KMV8Bsig/XRfY0lrBsZMg UTKg== 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 22-20020a631256000000b00477c62b9498si17108943pgs.212.2022.12.06.06.54.12; Tue, 06 Dec 2022 06:54:23 -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 S234684AbiLFOAR (ORCPT + 79 others); Tue, 6 Dec 2022 09:00:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234507AbiLFOAO (ORCPT ); Tue, 6 Dec 2022 09:00:14 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C993B1; Tue, 6 Dec 2022 06:00:13 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 8B58B68B05; Tue, 6 Dec 2022 15:00:03 +0100 (CET) Date: Tue, 6 Dec 2022 15:00:02 +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 5/5] nvme-vfio: Add a document for the NVMe device Message-ID: <20221206140002.GB27689@lst.de> References: <20221206055816.292304-1-lei.rao@intel.com> <20221206055816.292304-6-lei.rao@intel.com> <20221206062604.GB6595@lst.de> <20221206130901.GB24358@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 Tue, Dec 06, 2022 at 09:52:54AM -0400, Jason Gunthorpe wrote: > On Tue, Dec 06, 2022 at 02:09:01PM +0100, Christoph Hellwig wrote: > > On Tue, Dec 06, 2022 at 09:05:05AM -0400, Jason Gunthorpe wrote: > > > In this case Intel has a real PCI SRIOV VF to expose to the guest, > > > with a full VF RID. > > > > RID? > > "Requester ID" - PCI SIG term that in Linux basically means you get to > assign an iommu_domain to the vfio device. Yeah I now the Requester ID, I've just never seen that shortcut for it. > >From what I understood this series basically allows two Intel devices > to pass a big opaque blob of data. Intel didn't document what is in > that blob, so I assume it captures everything you mention above. Which would be just as bad, because it then changes the IDs under the live OS on a restore. This is not something that can be done behind the back of the hypervisors / control plane OS.