Re: [PATCH v4 01/25] KVM: arm64: Move hyp refcount manipulation helpers to common header file

Philippe Mathieu-Daudé
2022-10-17T20:35:01Z

On 17/10/22 13:51, Will Deacon wrote:
> From: Quentin Perret <qperret@google.com>
>
> We will soon need to manipulate 'struct hyp_page' refcounts from outside
> page_alloc.c, so move the helpers to a common header file to allow them
> to be reused easily.
>
> Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
> Tested-by: Vincent Donnefort <vdonnefort@google.com>
> Signed-off-by: Quentin Perret <qperret@google.com>
> Signed-off-by: Will Deacon <will@kernel.org>
> ---
> arch/arm64/kvm/hyp/include/nvhe/memory.h | 22 ++++++++++++++++++++++
> arch/arm64/kvm/hyp/nvhe/page_alloc.c | 19 -------------------
> 2 files changed, 22 insertions(+), 19 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>