From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lan Tianyu Subject: Re: [RFC PATCH 0/3] VFIO: Report IOMMU fault event to userspace Date: Thu, 16 Mar 2017 13:22:51 +0800 Message-ID: <330a6d10-cbe3-887a-9e4f-cf25a072a716@intel.com> References: <1487515629-13815-1-git-send-email-tianyu.lan@intel.com> <20170220135334.3b4d8328@t450s.home> <20170220222943.5e48de71@t450s.home> <5bc604ff-7616-56b3-60dc-213b2d72ec47@intel.com> <20170315135239.6a3f8002@t450s.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "kvm@vger.kernel.org" , "Tian, Kevin" , "mst@redhat.com" , "jan.kiszka@siemens.com" , "peterx@redhat.com" , "david@gibson.dropbear.id.au" , "Jean-Philippe.Brucker@arm.com" To: Jason Wang , Alex Williamson , "Liu, Yi L" Return-path: Received: from mga11.intel.com ([192.55.52.93]:12052 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbdCPFak (ORCPT ); Thu, 16 Mar 2017 01:30:40 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 2017年03月16日 11:32, Jason Wang wrote: > > > On 2017年03月16日 09:42, Lan Tianyu wrote: >>> Also I presume that this vIOMMU use case is not the only case where a >>> driver would want to be notified of IOMMU faults, in-kernel drivers >>> might want this too. Drivers making use of the DMA API don't really >>> have any visibility to the IOMMU domain in use, so the framework we use >>> to connect drivers with the IOMMU faults probably needs to abstract >>> that. >> Yes, device page request(part of SVM support) on native also requires >> that device driver to receive IOMMU fault event(page request event) from >> IOMMU driver. So it's necessary to add such abstract layer between IOMMU >> driver and device driver(include VFIO-PCI driver). > > Hi: > > Do you have a real case that requires PRS for kernel drivers? > Yes, Intel GPU supports this feature and patches is upstreaming. https://lists.freedesktop.org/archives/intel-gfx/2017-January/116292.html -- Best regards Tianyu Lan