Re: [PATCH v3 20/32] KVM: arm64: Refactor kvm_arm_setup_stage2()

Will Deacon
2021-03-04T19:37:18Z

On Tue, Mar 02, 2021 at 02:59:50PM +0000, Quentin Perret wrote:
> In order to re-use some of the stage 2 setup code at EL2, factor parts
> of kvm_arm_setup_stage2() out into separate functions.
>
> No functional change intended.
>
> Signed-off-by: Quentin Perret <qperret@google.com>
> ---
> arch/arm64/include/asm/kvm_pgtable.h | 26 +++++++++++++++++
> arch/arm64/kvm/hyp/pgtable.c | 32 +++++++++++++++++++++
> arch/arm64/kvm/reset.c | 42 +++-------------------------
> 3 files changed, 62 insertions(+), 38 deletions(-)

Looks much better than the big header in v2, thanks!

Acked-by: Will Deacon <will@kernel.org>

Will