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 C8346FA3741 for ; Mon, 31 Oct 2022 22:53:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D916110E206; Mon, 31 Oct 2022 22:53:25 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2127810E1E6 for ; Mon, 31 Oct 2022 22:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667256798; 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=bHpC1zf1qV1jmlc1wntYS1OKLTiiLa4Edpg3f0kbUyY=; b=Udrgb+4anK2Waf5x646xCIt+siPX86RcZjnUkEfDrP9uMHRvvnQVtEaWG8Mx3lnpfAhfYQ DpKYglVHmONERP/Y+0h8O3n0XguJ8wox+gCIQhol0GJt1X9fXDeNMWPRUrgmBo6IwmYXmj KWHBlbOWnuW4SB/U0nohDT+CGxa1+pI= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-140-rPMKUk0GN8mXSXYHPvYYbw-1; Mon, 31 Oct 2022 18:53:14 -0400 X-MC-Unique: rPMKUk0GN8mXSXYHPvYYbw-1 Received: by mail-il1-f198.google.com with SMTP id z19-20020a056e02089300b002fffe186ac4so11407411ils.8 for ; Mon, 31 Oct 2022 15:53:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bHpC1zf1qV1jmlc1wntYS1OKLTiiLa4Edpg3f0kbUyY=; b=Yywi4quHJfoh0NoJfEQs9YWDcSAYzDkaLgn+f0KvJYBC1zCv8QvJTNdE0h2k4gU3Ny m9/ftfplu5MRsBMMtunDHbGNK4s454+FZszZH8Nwy52gvP4OL540l+JQ4hlxgoRY90pe tJoUvuADrBPUqmRKwq4x1898qSJzrikUuHxUcnJV2DE5dnPp6H9Ln1tZMm/d7Ncc7Owx AT0Rf0t5lB7XHJRU/5emYaAL1cpXbInIp2/Yx1AdtAoHLnDt2cqUbs3zwGI+/8to5YVm MVxnlFbGsKyKc+WgbkplmuHu+eOrtEgm+blng0e3eAp06WLCdZL7g/eu1fFVYAPkCsBu 8oVg== X-Gm-Message-State: ACrzQf17tTLdZ/PNf9J9aSTeQKrPNp/bdeDwrePQeg3Kw9JdHaRiGfjA 0Dv851sLYEmyUzzbPf8BSFRhEjJrSQOGRbsy3AdFEX1j1MfE0KmSLhDX0pQ3HH+i/d0g/1ppo9l qG/p5yK++XPtQpMegddoQhjeln+Gk X-Received: by 2002:a05:6e02:180c:b0:2fc:4018:9440 with SMTP id a12-20020a056e02180c00b002fc40189440mr7991821ilv.225.1667256793699; Mon, 31 Oct 2022 15:53:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7liCEme2wsc4XzJa+HajVmv1KVpsxVcMQII15KI4qdQbhYdKRKQskOMruD/YfHk1W7Cq0evQ== X-Received: by 2002:a05:6e02:180c:b0:2fc:4018:9440 with SMTP id a12-20020a056e02180c00b002fc40189440mr7991769ilv.225.1667256793463; Mon, 31 Oct 2022 15:53:13 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id g15-20020a02850f000000b00372bbd04b75sm3200984jai.87.2022.10.31.15.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 15:53:12 -0700 (PDT) Date: Mon, 31 Oct 2022 16:53:11 -0600 From: Alex Williamson To: Jason Gunthorpe Subject: Re: [PATCH 10/10] iommufd: Allow iommufd to supply /dev/vfio/vfio Message-ID: <20221031165311.0698e1ea.alex.williamson@redhat.com> In-Reply-To: References: <0-v1-4991695894d8+211-vfio_iommufd_jgg@nvidia.com> <10-v1-4991695894d8+211-vfio_iommufd_jgg@nvidia.com> <20221026153133.44dc05c8.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Kevin Tian , dri-devel@lists.freedesktop.org, Vineeth Vijayan , Diana Craciun , Alexander Gordeev , Longfang Liu , linux-s390@vger.kernel.org, Yi Liu , Matthew Rosato , Will Deacon , Joerg Roedel , Halil Pasic , iommu@lists.linux.dev, Nicolin Chen , Christian Borntraeger , intel-gfx@lists.freedesktop.org, Zhi Wang , Jason Herne , Eric Farman , Vasily Gorbik , Heiko Carstens , Eric Auger , Harald Freudenberger , Rodrigo Vivi , intel-gvt-dev@lists.freedesktop.org, Tony Krowiak , Tvrtko Ursulin , Yishai Hadas , Cornelia Huck , Peter Oberparleiter , Shameer Kolothum , Sven Schnelle , Robin Murphy , Lu Baolu Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, 28 Oct 2022 15:44:36 -0300 Jason Gunthorpe wrote: > On Wed, Oct 26, 2022 at 03:31:33PM -0600, Alex Williamson wrote: > > On Tue, 25 Oct 2022 15:50:45 -0300 > > Jason Gunthorpe wrote: > > > > > If the VFIO container is compiled out, give a kconfig option for iommufd > > > to provide the miscdev node with the same name and permissions as vfio > > > uses. > > > > > > The compatibility node supports the same ioctls as VFIO and automatically > > > enables the VFIO compatible pinned page accounting mode. > > > > I think I'd like to see some sort of breadcrumb when /dev/vfio/vfio is > > provided by something other than the vfio container code. If we intend > > to include this before P2P is resolved, that breadcrumb > > I don't belive I can get P2P done soon enough. I plan to do it after > this is merged. Right now these two series are taking all my time. > > > (dmesg I'm guessing) might also list any known limitations of the > > compatibility to save time with debugging. Thanks, > > Yes, that makes sense. > > Do you want a dmesg at module load time, on every open, or a sysfs > something? What seems like it would make it into a bug report? I think dmesg at module load time should probably be ok, every open seems like harassment and sysfs would require updated support in various bug reporting tools. Users are often terrible about reporting full dmesg in bugs, but they do often filter it for "IOMMU" or "VFIO", so keep that in mind when crafting the log message. Thanks, Alex