]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: arm64: Switch to per VM IPA limit
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Sep 2018 16:32:49 +0000 (17:32 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 12:50:32 +0000 (13:50 +0100)
commit1977556e9d31c58616ac837e4316841648bcf255
tree0dae8da91a6f4a1e128b621b9d69e9702da7fb5d
parent24e1029c67e387cbb98cf3fa8819c81c14c3484d
kvm: arm64: Switch to per VM IPA limit

Now that we can manage the stage2 page table per VM, switch the
configuration details to per VM instance. The VTCR is updated
with the values specific to the VM based on the configuration.
We store the IPA size and the number of stage2 page table levels
for the guest already in VTCR. Decode it back from the vtcr
field wherever we need it.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@kernel.org>
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/include/asm/kvm_mmu.h
arch/arm64/include/asm/stage2_pgtable.h
arch/arm64/kvm/reset.c