From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [RFC PATCH 0/3] VFIO: Report IOMMU fault event to userspace Date: Thu, 16 Mar 2017 11:32:28 +0800 Message-ID: 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; format=flowed 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: Lan Tianyu , Alex Williamson , "Liu, Yi L" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:33624 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbdCPDcx (ORCPT ); Wed, 15 Mar 2017 23:32:53 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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? Thanks