Commit 66ea3f9
iommu/amd: Modify clear_dte_entry() to avoid in-place update
By reusing the make_clear_dte() and update_dte256().
Also, there is no need to set TV bit for non-SNP system when clearing DTE
for blocked domain, and no longer need to apply erratum 63 in clear_dte()
since it is already stored in struct ivhd_dte_flags and apply in
set_dte_entry().
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent a2ce608 commit 66ea3f9
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2103 | 2103 | | |
2104 | 2104 | | |
2105 | 2105 | | |
2106 | | - | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
2107 | 2110 | | |
2108 | | - | |
2109 | | - | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
2113 | | - | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
| 2111 | + | |
| 2112 | + | |
2117 | 2113 | | |
2118 | | - | |
| 2114 | + | |
| 2115 | + | |
2119 | 2116 | | |
2120 | 2117 | | |
2121 | 2118 | | |
| |||
2126 | 2123 | | |
2127 | 2124 | | |
2128 | 2125 | | |
2129 | | - | |
| 2126 | + | |
2130 | 2127 | | |
2131 | 2128 | | |
2132 | 2129 | | |
| |||
0 commit comments