From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38286C433EF for ; Sat, 23 Apr 2022 05:16:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75D5A10FA42; Sat, 23 Apr 2022 05:15:59 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by gabe.freedesktop.org (Postfix) with ESMTPS id A500E10FA3A; Sat, 23 Apr 2022 05:15:57 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id AF36268AFE; Sat, 23 Apr 2022 07:15:52 +0200 (CEST) Date: Sat, 23 Apr 2022 07:15:52 +0200 From: Christoph Hellwig To: Jason Gunthorpe Message-ID: <20220423051551.GA17488@lst.de> References: <0-v2-6011bde8e0a1+5f-vfio_mdev_no_group_jgg@nvidia.com> <3-v2-6011bde8e0a1+5f-vfio_mdev_no_group_jgg@nvidia.com> <20220422062232.GB11926@lst.de> <20220422205651.GF1951132@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422205651.GF1951132@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: [Intel-gfx] [PATCH v2 3/7] vfio/mdev: Pass in a struct vfio_device * to vfio_pin/unpin_pages() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, linux-doc@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Kirti Wankhede , Vineeth Vijayan , Alexander Gordeev , Christoph Hellwig , linux-s390@vger.kernel.org, "Liu, Yi L" , Matthew Rosato , Jonathan Corbet , Halil Pasic , Christian Borntraeger , intel-gfx@lists.freedesktop.org, Tony Krowiak , Eric Farman , Vasily Gorbik , Heiko Carstens , Harald Freudenberger , Rodrigo Vivi , intel-gvt-dev@lists.freedesktop.org, Jason Herne , Cornelia Huck , Peter Oberparleiter , Sven Schnelle Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Fri, Apr 22, 2022 at 05:56:51PM -0300, Jason Gunthorpe wrote: > On Fri, Apr 22, 2022 at 08:22:32AM +0200, Christoph Hellwig wrote: > > Nit: why do some of these patches that don't touch the mdev code > > mdev in the subject? > > I consider these APIs to be 'mdev apis' because only mdev drivers > should call them. I thought we settled on 'emulated IOMMU device' in the VFIO core for them, leaving mdev just for the odd lifecycle management glue. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0A82C433F5 for ; Sat, 23 Apr 2022 05:16:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233147AbiDWFS4 (ORCPT ); Sat, 23 Apr 2022 01:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbiDWFS4 (ORCPT ); Sat, 23 Apr 2022 01:18:56 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DFB14F461; Fri, 22 Apr 2022 22:15:59 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id AF36268AFE; Sat, 23 Apr 2022 07:15:52 +0200 (CEST) Date: Sat, 23 Apr 2022 07:15:52 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Alexander Gordeev , David Airlie , Alex Williamson , Christian Borntraeger , Cornelia Huck , Jonathan Corbet , Daniel Vetter , dri-devel@lists.freedesktop.org, Harald Freudenberger , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, Jani Nikula , Jason Herne , Joonas Lahtinen , kvm@vger.kernel.org, Kirti Wankhede , linux-doc@vger.kernel.org, linux-s390@vger.kernel.org, Matthew Rosato , Peter Oberparleiter , Halil Pasic , Rodrigo Vivi , Sven Schnelle , Tvrtko Ursulin , Vineeth Vijayan , Zhenyu Wang , Zhi Wang , Tony Krowiak , Eric Farman , "Tian, Kevin" , "Liu, Yi L" Subject: Re: [PATCH v2 3/7] vfio/mdev: Pass in a struct vfio_device * to vfio_pin/unpin_pages() Message-ID: <20220423051551.GA17488@lst.de> References: <0-v2-6011bde8e0a1+5f-vfio_mdev_no_group_jgg@nvidia.com> <3-v2-6011bde8e0a1+5f-vfio_mdev_no_group_jgg@nvidia.com> <20220422062232.GB11926@lst.de> <20220422205651.GF1951132@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422205651.GF1951132@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, Apr 22, 2022 at 05:56:51PM -0300, Jason Gunthorpe wrote: > On Fri, Apr 22, 2022 at 08:22:32AM +0200, Christoph Hellwig wrote: > > Nit: why do some of these patches that don't touch the mdev code > > mdev in the subject? > > I consider these APIs to be 'mdev apis' because only mdev drivers > should call them. I thought we settled on 'emulated IOMMU device' in the VFIO core for them, leaving mdev just for the odd lifecycle management glue.