diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2016-03-23 19:34:19 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-04-05 17:00:37 +0200 |
commit | 3d1a2442d2c08c872150db7a554647c06f6e864f (patch) | |
tree | 568ee17ca89956cf570ad3dbc65212b5e4d277be /drivers/iommu/intel-iommu.c | |
parent | iommu/vt-d: Improve fault handler error messages (diff) | |
download | linux-3d1a2442d2c08c872150db7a554647c06f6e864f.tar.xz linux-3d1a2442d2c08c872150db7a554647c06f6e864f.zip |
x86/vt-d: Fix comment for dma_pte_free_pagetable()
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>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index a2e1b7f14df2..01005531891b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -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) |