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 X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8C9FC433E9 for ; Wed, 10 Mar 2021 15:28:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C900664F9A for ; Wed, 10 Mar 2021 15:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbhCJP2X (ORCPT ); Wed, 10 Mar 2021 10:28:23 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:53795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233119AbhCJP2P (ORCPT ); Wed, 10 Mar 2021 10:28:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615390094; 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=m2utDrrGE5PCioOv1cmRGw92qDJ4cE08OYCs2ZdVyTE=; b=bdK3BHvGD66jyavy7PVkqQrT9Uwj+bLHlWJ15FUJqp53UvggDmpfCIXv6Mqo4zDX338bl6 EgdOwUpUG2D6G6RCF0OtAVr2wyGQ7nRQPv2U0P/NBwzDobCUeX/R5+Tbpoasif0q0fu2ZN D2qroU6/Sb8+UY8OFbQbSoi153rbpiU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-256-ck0P-rG2PuGhFUdgzqOCdg-1; Wed, 10 Mar 2021 10:28:10 -0500 X-MC-Unique: ck0P-rG2PuGhFUdgzqOCdg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 89C77801596; Wed, 10 Mar 2021 15:28:09 +0000 (UTC) Received: from omen.home.shazbot.org (ovpn-112-255.phx2.redhat.com [10.3.112.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC98E1002F12; Wed, 10 Mar 2021 15:28:05 +0000 (UTC) Date: Wed, 10 Mar 2021 08:28:05 -0700 From: Alex Williamson To: Jason Gunthorpe Cc: Christoph Hellwig , cohuck@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, peterx@redhat.com Subject: Re: [PATCH v1 02/14] vfio: Update vfio_add_group_dev() API Message-ID: <20210310082805.29813cad@omen.home.shazbot.org> In-Reply-To: <20210310121913.GR2356281@nvidia.com> References: <161523878883.3480.12103845207889888280.stgit@gimli.home> <161524006056.3480.3931750068527641030.stgit@gimli.home> <20210310074838.GA662265@infradead.org> <20210310121913.GR2356281@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, 10 Mar 2021 08:19:13 -0400 Jason Gunthorpe wrote: > On Wed, Mar 10, 2021 at 07:48:38AM +0000, Christoph Hellwig wrote: > > On Mon, Mar 08, 2021 at 02:47:40PM -0700, Alex Williamson wrote: > > > Rather than an errno, return a pointer to the opaque vfio_device > > > to allow the bus driver to call into vfio-core without additional > > > lookups and references. Note that bus drivers are still required > > > to use vfio_del_group_dev() to teardown the vfio_device. > > > > > > Signed-off-by: Alex Williamson > > > > This looks like it is superseded by the > > > > vfio: Split creation of a vfio_device into init and register ops > > Yes, that series puts vfio_device everywhere so APIs like Alex needs > to build here become trivial. > > The fact we both converged on this same requirement is good You're ahead of me in catching up with reviews Christoph, but considering stable backports and the motivations for each series, I'd expect to initially make the minimal API change and build from there. Thanks, Alex