The level 1 special exit path is unnecessary in iommu_pde_from_dfn() - the subsequent code takes care of this case quite fine.
Signed-off-by: Jan Beulich <jbeul...@suse.com> --- a/xen/drivers/passthrough/amd/iommu_map.c +++ b/xen/drivers/passthrough/amd/iommu_map.c @@ -198,12 +198,6 @@ static int iommu_pde_from_dfn(struct dom next_table_mfn = mfn_x(page_to_mfn(table)); - if ( level == 1 ) - { - pt_mfn[level] = next_table_mfn; - return 0; - } - while ( level > 1 ) { unsigned int next_level = level - 1; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel