Re: [PATCH v3 04/15] KVM: arm64: Fixup hyp stage-1 refcount

From: Will Deacon
Date: Thu Dec 09 2021 - 06:09:41 EST


On Wed, Dec 01, 2021 at 05:03:58PM +0000, Quentin Perret wrote:
> 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.
>
> Signed-off-by: Quentin Perret <qperret@xxxxxxxxxx>
> ---
> arch/arm64/kvm/hyp/nvhe/setup.c | 21 ++++++++++++++++-----
> 1 file changed, 16 insertions(+), 5 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will