diff options
author | Oliver Upton <[email protected]> | 2022-11-07 21:56:31 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-10 14:43:46 +0000 |
commit | dfc7a7769ab7f2a2f629c673717ef1fa7b63aa42 (patch) | |
tree | d8d6a9575d8555ca4aae4233d7942f567fd4a14c /lib/mpi/mpi-mod.c | |
parent | 30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff) |
KVM: arm64: Combine visitor arguments into a context structure
Passing new arguments by value to the visitor callbacks is extremely
inflexible for stuffing new parameters used by only some of the
visitors. Use a context structure instead and pass the pointer through
to the visitor callback.
While at it, redefine the 'flags' parameter to the visitor to contain
the bit indicating the phase of the walk. Pass the entire set of flags
through the context structure such that the walker can communicate
additional state to the visitor callback.
No functional change intended.
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions