iommu: remove the share_p2m operation
authorPaul Durrant <pdurrant@amazon.com>
Fri, 27 Nov 2020 17:03:42 +0000 (18:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Nov 2020 17:03:42 +0000 (18:03 +0100)
commit25ccd093425ce1d3a9f33ecd82e92f35952b8496
tree643c3217b4142a94f54edf69cc56440f1ac5e831
parent181f2c224ccd0a2900d6ae94ec390a546731f593
iommu: remove the share_p2m operation

Sharing of HAP tables is now VT-d specific so the operation is never defined
for AMD IOMMU any more. There's also no need to pro-actively set vtd.pgd_maddr
when using shared EPT as it is straightforward to simply define a helper
function to return the appropriate value in the shared and non-shared cases.

NOTE: This patch also modifies unmap_vtd_domain_page() to take a const
      pointer since the only thing it calls, unmap_domain_page(), also takes
      a const pointer.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/mm/p2m.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/include/xen/iommu.h