]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Share common code in user_mem_abort()
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 11 Dec 2018 17:10:34 +0000 (17:10 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 15:14:46 +0000 (15:14 +0000)
commit388aeea11a629f2235eca1011d3f682a8edba00c
treefbc5d4c5ae2b96bb06961ae195461480a7c2f960
parentb46f67eccee1453e93ad09b0c7c1a2eac7272d8f
KVM: arm/arm64: Share common code in user_mem_abort()

The code for operations such as marking the pfn as dirty, and
dcache/icache maintenance during stage 2 fault handling is duplicated
between normal pages and PMD hugepages.

Instead of creating another copy of the operations when we introduce
PUD hugepages, let's share them across the different pagesizes.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/mmu.c