Luckily the function currently has no callers - it would have called
through NULL for both Arm and x86/AMD.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
{
const struct domain_iommu *hd = dom_iommu(d);
- if ( !iommu_enabled || !hd->platform_ops )
+ if ( !iommu_enabled || !hd->platform_ops || !hd->platform_ops->lookup_page )
return -EOPNOTSUPP;
return hd->platform_ops->lookup_page(d, dfn, mfn, flags);