KVM: arm64: Fixup hyp stage-1 refcount
authorQuentin Perret <qperret@google.com>
Wed, 15 Dec 2021 16:12:20 +0000 (16:12 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 12:58:56 +0000 (12:58 +0000)
commitd6b4bd3f4897f3b60ac9e8c9e2f0300e739b3392
treecb99d8b0d527f39e4b366f243b2b626527a96808
parent2ea2ff91e82293909d4879b0b4c6c94b02d52b7e
KVM: arm64: Fixup hyp stage-1 refcount

In nVHE-protected mode, the hyp stage-1 page-table refcount is broken
due to the lack of refcount support in the early allocator. Fix-up the
refcount in the finalize walker, once the 'hyp_vmemmap' is up and running.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211215161232.1480836-4-qperret@google.com
arch/arm64/kvm/hyp/nvhe/setup.c