]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: arm64: Clean up VTCR_EL2 initialisation
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Sep 2018 16:32:41 +0000 (17:32 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 12:50:29 +0000 (13:50 +0100)
commit3f8ceb95568618a4be3b7d2436ec9d15f601ef81
treecdd9dd1610a9d0db4118d8b785534a1dde61f286
parent2c8d871acadf00db87e50cd40b57fdb97492db69
kvm: arm64: Clean up VTCR_EL2 initialisation

Use the new helper for converting the parange to the physical shift.
Also, add the missing definitions for the VTCR_EL2 register fields
and use them instead of hard coding numbers.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@kernel.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/hyp/s2-setup.c