Re: [PATCH v13 2/8] iommu/vt-d: Use a helper function to skip agaw for SL

2020-05-14 Thread Jacob Pan
On Wed, 13 May 2020 22:51:32 -0700 Christoph Hellwig wrote: > On Wed, May 13, 2020 at 04:01:43PM -0700, Jacob Pan wrote: > > An Intel iommu domain uses 5-level page table by default. If the > > iommu that the domain tries to attach supports less page levels, > > the top level page tables should b

Re: [PATCH v13 2/8] iommu/vt-d: Use a helper function to skip agaw for SL

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 04:01:43PM -0700, Jacob Pan wrote: > An Intel iommu domain uses 5-level page table by default. If the > iommu that the domain tries to attach supports less page levels, > the top level page tables should be skipped. Add a helper to do > this so that it could be used in other