Commit 9b467a5
iommu/amd: Introduce helper function amd_iommu_update_dte()
Which includes DTE update, clone_aliases, DTE flush and completion-wait
commands to avoid code duplication when reuse to setup DTE for nested
translation.
Also, make amd_iommu_update_dte() non-static to reuse in
in a new nested.c file for nested translation.
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>1 parent 11cfa78 commit 9b467a5
2 files changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
206 | 222 | | |
207 | 223 | | |
208 | 224 | | |
| |||
2127 | 2143 | | |
2128 | 2144 | | |
2129 | 2145 | | |
2130 | | - | |
| 2146 | + | |
2131 | 2147 | | |
2132 | 2148 | | |
2133 | 2149 | | |
| |||
2147 | 2163 | | |
2148 | 2164 | | |
2149 | 2165 | | |
2150 | | - | |
| 2166 | + | |
2151 | 2167 | | |
2152 | 2168 | | |
2153 | 2169 | | |
| |||
2159 | 2175 | | |
2160 | 2176 | | |
2161 | 2177 | | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | 2178 | | |
2167 | 2179 | | |
2168 | 2180 | | |
| |||
0 commit comments