x86/vt-d: Fix comment for dma_pte_free_pagetable()
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 23 Mar 2016 18:34:19 +0000 (20:34 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 Apr 2016 15:00:37 +0000 (17:00 +0200)
dma_pte_free_pagetable no longer depends on last level ptes
being clear, it clears them itself.  Fix up the comment to
match.

Cc: Jiang Liu <jiang.liu@linux.intel.com>
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c

index a2e1b7f14df29cc78b625ec88455438d0fa1fe07..01005531891b7fc0042d70c25c979cf52f0c812d 100644 (file)
@@ -1143,7 +1143,7 @@ next:
        } while (!first_pte_in_page(++pte) && pfn <= last_pfn);
 }
 
-/* free page table pages. last level pte should already be cleared */
+/* clear last level (leaf) ptes and free page table pages. */
 static void dma_pte_free_pagetable(struct dmar_domain *domain,
                                   unsigned long start_pfn,
                                   unsigned long last_pfn)