# Re: \[RFC PATCH v2 18/26\] KVM: arm64: Use kvm\_arch for stage 2 pgtable

- From: Will Deacon \<will@kernel.org\>
- Date: 2021-02-03 15:37:25 
- List: kvmarm
- Page: https://ratatoskr.run/kvmarm/2021/02/6257253
- Thread: https://ratatoskr.run/linux-devicetree/2021/01/6227695/t.md

```text
On Fri, Jan 08, 2021 at 12:15:16PM +0000, Quentin Perret wrote:
> In order to make use of the stage 2 pgtable code for the host stage 2,
> use struct kvm_arch in lieu of struct kvm as the host will have the
> former but not the latter.
> 
> Signed-off-by: Quentin Perret <redacted>
> ---
>  arch/arm64/include/asm/kvm_pgtable.h | 5 +++--
>  arch/arm64/kvm/hyp/pgtable.c         | 6 +++---
>  arch/arm64/kvm/mmu.c                 | 2 +-
>  3 files changed, 7 insertions(+), 6 deletions(-)

Acked-by: Will Deacon <will@kernel.org>

Will
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
```
