]> xenbits.xensource.com Git - xen.git/commit
AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page
authorJan Beulich <jbeulich@suse.com>
Wed, 11 Dec 2019 14:39:07 +0000 (15:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Dec 2019 14:39:07 +0000 (15:39 +0100)
commit406d40d8b4161aecedfb8fd1c3cb74dcdb9419a1
tree1d3cc5aa2cbf0452d0fa7948167f2a2ae9171fa5
parente4899550ff7834e1ea5dfbbfb1c618f64e247761
AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page

Unmapping a page which has never been mapped should be a no-op (note how
it already is in case there was no root page table allocated). There's
in particular no need to grow the number of page table levels in use,
and there's also no need to allocate intermediate page tables except
when needing to split a large page.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: ad591454f069647c36a7daaa9ec23384c0263f0b
master date: 2019-11-12 11:08:34 +0100
xen/drivers/passthrough/amd/iommu_map.c