Commit 57e7de2
KVM: arm64: Consolidate idreg callbacks
Most of the ID_DESC() users use the same callbacks, with only a few
overrides. Consolidate the common callbacks in a macro, and consistently
use it everywhere.
Whilst we're at it, give ID_UNALLOCATED() a .name string, so that we can
easily decode traces.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20250220134907.554085-7-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>1 parent 2cd9542 commit 57e7de2
1 file changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2286 | 2293 | | |
2287 | 2294 | | |
2288 | | - | |
2289 | | - | |
| 2295 | + | |
2290 | 2296 | | |
2291 | 2297 | | |
2292 | 2298 | | |
2293 | 2299 | | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | 2300 | | |
2298 | 2301 | | |
2299 | 2302 | | |
2300 | 2303 | | |
2301 | 2304 | | |
2302 | 2305 | | |
2303 | | - | |
2304 | 2306 | | |
2305 | | - | |
2306 | 2307 | | |
2307 | 2308 | | |
2308 | 2309 | | |
2309 | 2310 | | |
2310 | 2311 | | |
2311 | 2312 | | |
2312 | | - | |
2313 | | - | |
2314 | | - | |
2315 | 2313 | | |
2316 | 2314 | | |
2317 | 2315 | | |
2318 | 2316 | | |
2319 | 2317 | | |
2320 | 2318 | | |
2321 | 2319 | | |
2322 | | - | |
2323 | | - | |
2324 | 2320 | | |
2325 | 2321 | | |
2326 | 2322 | | |
| |||
2330 | 2326 | | |
2331 | 2327 | | |
2332 | 2328 | | |
| 2329 | + | |
2333 | 2330 | | |
2334 | | - | |
2335 | | - | |
2336 | | - | |
| 2331 | + | |
2337 | 2332 | | |
2338 | | - | |
2339 | 2333 | | |
2340 | 2334 | | |
2341 | 2335 | | |
| |||
2346 | 2340 | | |
2347 | 2341 | | |
2348 | 2342 | | |
2349 | | - | |
2350 | 2343 | | |
2351 | | - | |
2352 | 2344 | | |
2353 | 2345 | | |
2354 | 2346 | | |
| |||
0 commit comments