]> xenbits.xensource.com Git - xen.git/commit
AMD IOMMU: don't free page table prematurely
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 10:22:14 +0000 (12:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 10:22:14 +0000 (12:22 +0200)
commitf9d3462a8fe6768e8230f1ee21251dee9f165fc7
tree19795a3b2ae1e594973d228de3fecab089a35265
parent2bc830e4fea6f4ecc974dfe09fab27b01b9b633a
AMD IOMMU: don't free page table prematurely

iommu_merge_pages() still wants to look at the next level page table,
the TLB flush necessary before freeing too happens in that function,
and if it fails no free should happen at all. Hence the freeing must
be done after that function returned successfully, not before it's
being called.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tested-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
master commit: 6b4d71d028f445cba7426a144751fddc8bfdd67b
master date: 2014-05-28 09:50:33 +0200
xen/drivers/passthrough/amd/iommu_map.c