projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6827bea
)
AMD/IOMMU: drop redundant code
author
Jan Beulich
<jbeulich@suse.com>
Wed, 12 Feb 2020 09:54:08 +0000
(10:54 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 12 Feb 2020 09:54:08 +0000
(10:54 +0100)
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>
xen/drivers/passthrough/amd/iommu_map.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/amd/iommu_map.c
b/xen/drivers/passthrough/amd/iommu_map.c
index 2f3b47b36603aedaec389172ad9783ae09d79611..3b7cf649ca41b23b15f014beac39cfff423f09f6 100644
(file)
--- a/
xen/drivers/passthrough/amd/iommu_map.c
+++ b/
xen/drivers/passthrough/amd/iommu_map.c
@@
-194,12
+194,6
@@
static int iommu_pde_from_dfn(struct domain *d, unsigned long dfn,
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;