KVM: arm64: Adjust partial code of hyp stage-1 map and guest stage-2 map
authorYanan Wang <wangyanan55@huawei.com>
Thu, 14 Jan 2021 12:13:48 +0000 (20:13 +0800)
committerMarc Zyngier <maz@kernel.org>
Mon, 25 Jan 2021 16:30:20 +0000 (16:30 +0000)
commit8ed80051c8c31d1587722fdb3af16677eba9d693
tree4199cd8220b37f0a477cf3938f572bff5d19948d
parent19c329f6808995b142b3966301f217c831e7cf31
KVM: arm64: Adjust partial code of hyp stage-1 map and guest stage-2 map

Procedures of hyp stage-1 map and guest stage-2 map are quite different,
but they are tied closely by function kvm_set_valid_leaf_pte().
So adjust the relative code for ease of code maintenance in the future.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210114121350.123684-2-wangyanan55@huawei.com
arch/arm64/kvm/hyp/pgtable.c