Message ID | 8f9626f1-7959-9037-df98-7495839fa858@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | AMD IOMMU: misc small adjustments | expand |
On 05/02/2020 09:42, Jan Beulich wrote: > 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 <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.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;
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 <jbeulich@suse.com>