]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Support PUD hugepage in stage2_is_exec()
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 11 Dec 2018 17:10:38 +0000 (17:10 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 15:14:48 +0000 (15:14 +0000)
commit00f4df4f0dcec0b30b3eb9374ded0d74f5a96809
tree8b99ba93dd40ac0b23aaf618ca673dead925bd37
parent9e142d1dfc7d4eefdeb42fb65b53ca00211517b4
KVM: arm64: Support PUD hugepage in stage2_is_exec()

In preparation for creating PUD hugepages at stage 2, add support for
detecting execute permissions on PUD page table entries. Faults due to
lack of execute permissions on page table entries is used to perform
i-cache invalidation on first execute.

Provide trivial implementations of arm32 helpers to allow sharing of
code.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
[ Replaced BUG() => WARN_ON(1) in arm32 PUD helpers ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_mmu.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/include/asm/pgtable-hwdef.h
virt/kvm/arm/mmu.c