Received: from eggs.gnu.org ([2001:4830:134:3::10]:50489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etAfp-00041u-Ey for qemu-devel@nongnu.org; Tue, 06 Mar 2018 06:22:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etAfm-0002iY-0v for qemu-devel@nongnu.org; Tue, 06 Mar 2018 06:22:25 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44356 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etAfl-0002iJ-Rv for qemu-devel@nongnu.org; Tue, 06 Mar 2018 06:22:21 -0500 References: <1519900415-30314-1-git-send-email-yi.l.liu@linux.intel.com> <1519900415-30314-9-git-send-email-yi.l.liu@linux.intel.com> <20180305084207.GE2482@sky-dev> <2160f478-2c8a-8fbe-1df8-78c1984cf375@redhat.com> <20180306110337.GC3158@sky-dev> From: Paolo Bonzini Message-ID: Date: Tue, 6 Mar 2018 12:22:11 +0100 MIME-Version: 1.0 In-Reply-To: <20180306110337.GC3158@sky-dev> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce pci_device_notify_iommu() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Liu, Yi L" Cc: kevin.tian@intel.com, yi.l.liu@intel.com, mst@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org, peterx@redhat.com, alex.williamson@redhat.com, eric.auger.pro@gmail.com, david@gibson.dropbear.id.au On 06/03/2018 12:03, Liu, Yi L wrote: > On Tue, Mar 06, 2018 at 11:18:43AM +0100, Paolo Bonzini wrote: >> On 05/03/2018 09:42, Liu, Yi L wrote: >>>> In general I think it's better to change your names from "assigned_dev" >>>> to "sva_dev", because the point of the list is to only iterate over >>>> devices that might be interested in using SVA. >>> >>> For "assigned_dev", my purpose is to distinguish "assigned devices" from >>> emulated devices. Only the SVA usage on "assigned devices" is cared here. >>> But it is true only SVA capable device is interested. So I may need to >>> rename it as "assigned_sva_dev". How about your opinion? >> >> What you care about is not whether the device assigned, but rather >> whether it called or not pci_setup_sva_ops. Currently only VFIO does >> this, but that's not a requirement. Hence my suggestion of calling it >> sva_dev. > > Yes, only VFIO calls pci_setup_sva_ops so far, but it should not limited to. > I'll apply in next version. For what it's worth, I agree with David's suggestion for naming (so pci_setup_pasid_ops, pasid_dev, etc.) Paolo