Re: [PATCH v8 2/9] KVM: arm/arm64: Share common code in user_mem_abort()

From: Suzuki K Poulose
Date: Mon Oct 01 2018 - 13:43:16 EST


On 10/01/2018 04:54 PM, Punit Agrawal wrote:
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@xxxxxxx>
Cc: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
Cc: Christoffer Dall <christoffer.dall@xxxxxxx>
Cc: Marc Zyngier <marc.zyngier@xxxxxxx>
---

Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>