]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: arm/arm64: Prepare for VM specific stage2 translations
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Sep 2018 16:32:44 +0000 (17:32 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 12:50:30 +0000 (13:50 +0100)
commit22ac45c65c227fe2cb52a5f9ec0bd2370e38be2e
treeb8bb0ba718f87a4485b270afdd4ea14f4a8fa1cf
parent51d865cdaf1817877d2533852f5bd8da9294534b
kvm: arm/arm64: Prepare for VM specific stage2 translations

Right now the stage2 page table for a VM is hard coded, assuming
an IPA of 40bits. As we are about to add support for per VM IPA,
prepare the stage2 page table helpers to accept the kvm instance
to make the right decision for the VM. No functional changes.
Adds stage2_pgd_size(kvm) to replace S2_PGD_SIZE. Also, moves
some of the definitions in arm32 to align with the arm64.
Also drop the _AC() specifier constants wherever possible.

Cc: Christoffer Dall <cdall@kernel.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
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/arm/include/asm/kvm_arm.h
arch/arm/include/asm/kvm_mmu.h
arch/arm/include/asm/stage2_pgtable.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/include/asm/stage2_pgtable-nopmd.h
arch/arm64/include/asm/stage2_pgtable-nopud.h
arch/arm64/include/asm/stage2_pgtable.h
virt/kvm/arm/arm.c
virt/kvm/arm/mmu.c
virt/kvm/arm/vgic/vgic-kvm-device.c