Re: [PATCH v4 6/9] iommu/vt-d: Per PCI device pasid table interfaces

2018-07-11 Thread Peter Xu
On Wed, Jul 11, 2018 at 03:26:21PM +0800, Lu Baolu wrote: [...] > >> +int intel_pasid_alloc_table(struct device *dev) > >> +{ > >> + struct device_domain_info *info; > >> + struct pasid_table *pasid_table; > >> + struct pasid_table_opaque data; > >> + struct page *pages; > >> + size_t size,

Re: [PATCH v4 6/9] iommu/vt-d: Per PCI device pasid table interfaces

2018-07-11 Thread Lu Baolu
Hi, On 07/11/2018 10:18 AM, Peter Xu wrote: > On Mon, Jul 09, 2018 at 01:22:55PM +0800, Lu Baolu wrote: >> This patch adds the interfaces for per PCI device pasid >> table management. Currently we allocate one pasid table >> for all PCI devices under the scope of an IOMMU. It's >> insecure in some

Re: [PATCH v4 6/9] iommu/vt-d: Per PCI device pasid table interfaces

2018-07-10 Thread Peter Xu
On Mon, Jul 09, 2018 at 01:22:55PM +0800, Lu Baolu wrote: > This patch adds the interfaces for per PCI device pasid > table management. Currently we allocate one pasid table > for all PCI devices under the scope of an IOMMU. It's > insecure in some cases where multiple devices under one > single IO

[PATCH v4 6/9] iommu/vt-d: Per PCI device pasid table interfaces

2018-07-08 Thread Lu Baolu
This patch adds the interfaces for per PCI device pasid table management. Currently we allocate one pasid table for all PCI devices under the scope of an IOMMU. It's insecure in some cases where multiple devices under one single IOMMU unit support PASID features. With per PCI device pasid table, we