x86/p2m: fix non-translated handling of iommu mappings
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 23 Jul 2019 12:43:43 +0000 (14:43 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Aug 2019 13:24:05 +0000 (14:24 +0100)
commit77a994f3f8eb0d3cb0f2bf314b0ebf6a1d37f623
tree3af46ae3c124e50c4f0e5ed24089dcfd223dabe4
parentbbf230b2a1ae0e56f9d70fb2ca71ed08e97d49b4
x86/p2m: fix non-translated handling of iommu mappings

The current usage of need_iommu_pt_sync in p2m for non-translated
guests is wrong because it doesn't correctly handle a relaxed PV
hardware domain, that has need_sync set to false, but still need
entries to be added from calls to {set/clear}_identity_p2m_entry.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Tested-by: Roman Shaposhnik <roman@zededa.com>
xen/arch/x86/mm/p2m.c