x86/mm: avoid IOMMU operations in more cases in _get_page_type()
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 09:01:43 +0000 (10:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 09:01:43 +0000 (10:01 +0100)
commitc497bfa63390db9d2242c1ae2dfbee2a000e7ece
treebcbdaca280b42385756a141f9439fd151454f6f7
parent3d4985fc844e0887a47abcdfa55b887df3168fd2
x86/mm: avoid IOMMU operations in more cases in _get_page_type()

All that really matters is whether writability of a page changes; in
particular e.g. page table -> page table (but different levels)
transitions do not require unmapping the page from the IOMMU again.

Note that the XSA-288 fix did arrange for PGT_none pages not needing
special consideration here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c