vtd: add lookup_page method to iommu_ops
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 5 Oct 2018 14:35:23 +0000 (16:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Oct 2018 14:35:23 +0000 (16:35 +0200)
commitdd93d54fef0b25ac7215c33449c19b103c460aba
treee51e8ebb9c4dff3d020f7b86b542573f095060fe
parentfb1fbe0a8b89896dd5ac7d402c61a3b63d3c8a26
vtd: add lookup_page method to iommu_ops

This patch adds a new method to the VT-d IOMMU implementation to find the
MFN currently mapped by the specified DFN along with a wrapper function
in generic IOMMU code to call the implementation if it exists.

NOTE: This patch only adds a Xen-internal interface. This will be used by
      a subsequent patch.
      Another subsequent patch will add similar functionality for AMD
      IOMMUs.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/include/xen/iommu.h