diff options
author | Quentin Perret <[email protected]> | 2022-11-10 19:02:51 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-11 17:16:25 +0000 |
commit | 315775ff7c6de497dd07c3f6eff499fb538783eb (patch) | |
tree | 97389327fbcdb41eecdbc8db0f15d12fa5c46bee /lib/mpi/mpi-sub-ui.c | |
parent | 717a7eebac106a5cc5d5493f8eef9cf4ae6edf19 (diff) |
KVM: arm64: Consolidate stage-2 initialisation into a single function
The initialisation of guest stage-2 page-tables is currently split
across two functions: kvm_init_stage2_mmu() and kvm_arm_setup_stage2().
That is presumably for historical reasons as kvm_arm_setup_stage2()
originates from the (now defunct) KVM port for 32-bit Arm.
Simplify this code path by merging both functions into one, taking care
to map the 'struct kvm' into the hypervisor stage-1 early on in order to
simplify the failure path.
Tested-by: Vincent Donnefort <[email protected]>
Co-developed-by: Fuad Tabba <[email protected]>
Signed-off-by: Fuad Tabba <[email protected]>
Signed-off-by: Quentin Perret <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions