Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Jacob Pan
On Fri, 23 Jun 2017 14:34:34 -0600 Alex Williamson wrote: > > for_each_pci_dev(dev) { > <-- look in here, it's trickier than it > appears you are right, thanks.

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Jacob Pan
On Fri, 23 Jun 2017 14:34:34 -0600 Alex Williamson wrote: > > for_each_pci_dev(dev) { > <-- look in here, it's trickier than it > appears you are right, thanks.

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Alex Williamson
On Fri, 23 Jun 2017 13:16:29 -0700 Jacob Pan wrote: > On Thu, 22 Jun 2017 16:53:58 -0600 > Alex Williamson wrote: > > > On Wed, 14 Jun 2017 15:23:02 -0700 > > Jacob Pan wrote: > > > > > If the source

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Alex Williamson
On Fri, 23 Jun 2017 13:16:29 -0700 Jacob Pan wrote: > On Thu, 22 Jun 2017 16:53:58 -0600 > Alex Williamson wrote: > > > On Wed, 14 Jun 2017 15:23:02 -0700 > > Jacob Pan wrote: > > > > > If the source device of a page request has its PASID table pointer > > > bond to a guest, the first

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Jacob Pan
On Thu, 22 Jun 2017 16:53:58 -0600 Alex Williamson wrote: > On Wed, 14 Jun 2017 15:23:02 -0700 > Jacob Pan wrote: > > > If the source device of a page request has its PASID table pointer > > bond to a guest, the first level page tables

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-23 Thread Jacob Pan
On Thu, 22 Jun 2017 16:53:58 -0600 Alex Williamson wrote: > On Wed, 14 Jun 2017 15:23:02 -0700 > Jacob Pan wrote: > > > If the source device of a page request has its PASID table pointer > > bond to a guest, the first level page tables are owned by the guest. > > In this case, we shall let

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-22 Thread Alex Williamson
On Wed, 14 Jun 2017 15:23:02 -0700 Jacob Pan wrote: > If the source device of a page request has its PASID table pointer > bond to a guest, the first level page tables are owned by the guest. > In this case, we shall let guest OS to manage page fault. > > This

Re: [RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-22 Thread Alex Williamson
On Wed, 14 Jun 2017 15:23:02 -0700 Jacob Pan wrote: > If the source device of a page request has its PASID table pointer > bond to a guest, the first level page tables are owned by the guest. > In this case, we shall let guest OS to manage page fault. > > This patch uses the IOMMU fault

[RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-14 Thread Jacob Pan
If the source device of a page request has its PASID table pointer bond to a guest, the first level page tables are owned by the guest. In this case, we shall let guest OS to manage page fault. This patch uses the IOMMU fault notification API to send notifications, possibly via VFIO, to the guest

[RFC 8/9] iommu/intel-svm: notify page request to guest

2017-06-14 Thread Jacob Pan
If the source device of a page request has its PASID table pointer bond to a guest, the first level page tables are owned by the guest. In this case, we shall let guest OS to manage page fault. This patch uses the IOMMU fault notification API to send notifications, possibly via VFIO, to the guest