Commit ad90512
Marc Zyngier
KVM: arm64: Add REQUIRES_E2H1 constraint as configuration flags
A bunch of EL2 configuration are very similar to their EL1 counterpart,
with the added constraint that HCR_EL2.E2H being 1.
For us, this means HCR_EL2.E2H being RES1, which is something we can
statically evaluate.
Add a REQUIRES_E2H1 constraint, which allows us to express conditions
in a much simpler way (without extra code). Existing occurrences are
converted, before we add a lot more.
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-12-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent 8d94458 commit ad90512
1 file changed
Lines changed: 14 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 315 | | |
330 | 316 | | |
331 | 317 | | |
| |||
1045 | 1031 | | |
1046 | 1032 | | |
1047 | 1033 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1057 | 1043 | | |
1058 | 1044 | | |
1059 | 1045 | | |
| |||
1284 | 1270 | | |
1285 | 1271 | | |
1286 | 1272 | | |
| 1273 | + | |
1287 | 1274 | | |
1288 | 1275 | | |
1289 | 1276 | | |
| |||
1306 | 1293 | | |
1307 | 1294 | | |
1308 | 1295 | | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1309 | 1299 | | |
1310 | 1300 | | |
1311 | 1301 | | |
| |||
0 commit comments