KVM: arm64: Add support for creating kernel-agnostic stage-1 page tables
authorWill Deacon <will@kernel.org>
Fri, 11 Sep 2020 13:25:11 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:12 +0000 (15:51 +0100)
commitbb0e92cbbcd1f91411d0a7241f8febe2c8c5b078
tree88a3da64ce548c1bddb310937265847047158d9b
parentb1e57de62cfb4d05f45ab848bb893fbcff9557d3
KVM: arm64: Add support for creating kernel-agnostic stage-1 page tables

The generic page-table walker is pretty useless as it stands, because it
doesn't understand enough to allocate anything. Teach it about stage-1
page-tables, and hook up an API for allocating these for the hypervisor
at EL2.

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-4-will@kernel.org
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c