OSDN Git Service

KVM: arm64: Don't constrain maximum IPA size based on host configuration
authorWill Deacon <will@kernel.org>
Fri, 11 Sep 2020 13:25:29 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:15 +0000 (15:51 +0100)
commitc9b69a0cf0b4336fe7d2e35c46273debc68910fd
tree3b4ba80655325d8dd11fc0ea48d78a470a5ff750
parent74cfa7ea66a7e54a5ea1d8ad1fb74a5e832ed867
KVM: arm64: Don't constrain maximum IPA size based on host configuration

Now that the guest stage-2 page-tables are managed independently from
the host stage-1 page-tables, we can avoid constraining the IPA size
based on the host and instead limit it only based on the PARange field
of the ID_AA64MMFR0 register.

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-22-will@kernel.org
arch/arm64/kvm/reset.c