RE: [PATCH v4 03/14] x86/iommu: convert VT-d code to use new page table allocator

2020-08-14 Thread Durrant, Paul
> -Original Message- [snip] > > -static void iommu_free_page_table(struct page_info *pg) > > -{ > > -unsigned int i, next_level = PFN_ORDER(pg) - 1; > > -u64 pt_maddr = page_to_maddr(pg); > > -struct dma_pte *pt_vaddr, *pte; > > - > > -PFN_ORDER(pg) = 0; > > -pt_vaddr =

RE: [PATCH v4 03/14] x86/iommu: convert VT-d code to use new page table allocator

2020-08-13 Thread Tian, Kevin
> From: Paul Durrant > Sent: Tuesday, August 4, 2020 9:42 PM > > From: Paul Durrant > > This patch converts the VT-d code to use the new IOMMU page table > allocator > function. This allows all the free-ing code to be removed (since it is now > handled by the general x86 code) which reduces TLB