]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Pass walk flags to kvm_pgtable_stage2_mkyoung
authorQuentin Perret <qperret@google.com>
Wed, 18 Dec 2024 19:40:46 +0000 (19:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:43:59 +0000 (09:43 +0000)
commit5398ddc5c90bd418b90d859e9267aa39399021af
tree52bddf13ff91d67f2e443c6e8dca4e66c58aa843
parente94a7dea2972bd9a5ee3ed4312f7198370969407
KVM: arm64: Pass walk flags to kvm_pgtable_stage2_mkyoung

kvm_pgtable_stage2_mkyoung currently assumes that it is being called
from a 'shared' walker, which will not be true once called from pKVM.
To allow for the re-use of that function, make the walk flags one of
its parameters.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20241218194059.3670226-6-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c
arch/arm64/kvm/mmu.c