KVM: arm64: Check the pgt instead of the pgd when modifying page-table
authorWill Deacon <will@kernel.org>
Fri, 11 Sep 2020 13:25:26 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:15 +0000 (15:51 +0100)
commit063deeb1f2c234ca5e9d156c7a86825fc5377477
treecb28bbab380ae7c1492f1b06358a1a55da1c58ba
parent6f745f1bb5bf2914be2344b0dd7781d0528b3e42
KVM: arm64: Check the pgt instead of the pgd when modifying page-table

In preparation for removing the 'pgd' field of 'struct kvm_s2_mmu',
update the few remaining users to check the 'pgt' field instead.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20200911132529.19844-19-will@kernel.org
arch/arm64/kvm/mmu.c