OSDN Git Service

KVM: arm64: Unify stage-2 programming behind __load_stage2()
authorMarc Zyngier <maz@kernel.org>
Fri, 6 Aug 2021 11:31:07 +0000 (12:31 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Aug 2021 08:11:28 +0000 (09:11 +0100)
commit4efc0ede4f31d7ec25c3dee0c8f07f93735cee6d
tree5e1e2b80b0d02559275e66dcfbd10fd2d75081d0
parent923a547d71b967c808a596968cf8022102f8b5b2
KVM: arm64: Unify stage-2 programming behind __load_stage2()

The protected mode relies on a separate helper to load the
S2 context. Move over to the __load_guest_stage2() helper
instead, and rename it to __load_stage2() to present a unified
interface.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Jade Alglave <jade.alglave@arm.com>
Cc: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210806113109.2475-5-will@kernel.org
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/nvhe/tlb.c
arch/arm64/kvm/hyp/vhe/switch.c
arch/arm64/kvm/hyp/vhe/tlb.c