]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit588ca12d653f9857cd1b19a014a98cd6bd64201e
treecb99d8b0d527f39e4b366f243b2b626527a96808
parentbfe7601df8af2523f66bb08386ae06dc0bd9e702
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