Commit 75a5fba
KVM: arm64: Compute MDCR_EL2 at vcpu_load()
KVM has picked up several hacks to cope with vcpu->arch.mdcr_el2 needing
to be prepared before vcpu_load(), which is when it gets programmed
into hardware on VHE.
Now that the flows for reprogramming MDCR_EL2 have been simplified, move
that computation to vcpu_load().
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241219224116.3941496-14-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent 06d22a9 commit 75a5fba
3 files changed
+3
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
1344 | | - | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | 1346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
809 | 807 | | |
810 | 808 | | |
811 | 809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 101 | | |
116 | 102 | | |
117 | 103 | | |
| |||
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
134 | | - | |
135 | | - | |
136 | 120 | | |
137 | 121 | | |
138 | 122 | | |
| |||
273 | 257 | | |
274 | 258 | | |
275 | 259 | | |
| 260 | + | |
| 261 | + | |
276 | 262 | | |
277 | 263 | | |
278 | 264 | | |
| |||
287 | 273 | | |
288 | 274 | | |
289 | 275 | | |
| 276 | + | |
290 | 277 | | |
291 | 278 | | |
292 | 279 | | |
| |||
0 commit comments