HVO was previously disabled on arm64 [1] due to the lack of necessary
BBM(break-before-make) logic when changing page tables.
This set of patches fix this by adding necessary BBM sequence when
changing page table, and supporting vmemmap page fault handling to
fixup kernel address translation fault if vmemmap is concurrently accessed.
I have tested this patch set with concurrently accessing the vmemmap
address when do BBM and can recover by vmemmap fault handler. Also
tested under the config of 2/3/4 pgtable levels with 4K/64K page size
and all works well.
[1] commit 060a2c92d1b6 ("arm64: mm: hugetlb: Disable HUGETLB_PAGE_OPTIMIZE_VMEMMAP")
Mark Rutland (1):
arm64: mm: kfence: only handle translation faults
Nanyong Sun (2):
mm: HVO: introduce helper function to update and flush pgtable
arm64: mm: HVO: support BBM of vmemmap pgtable safely
Wang Kefeng (1):
ARM: 9278/1: kfence: only handle translation faults
arch/arm/mm/fault.c | 18 +++++-
arch/arm/mm/fault.h | 9 ++-
arch/arm64/include/asm/esr.h | 4 ++
arch/arm64/include/asm/pgtable.h | 6 ++
arch/arm64/include/asm/tlbflush.h | 16 +++++
arch/arm64/mm/fault.c | 98 +++++++++++++++++++++++++++++--
arch/arm64/mm/mmu.c | 29 +++++++++
mm/sparse-vmemmap.c | 49 +++++++++++++---
8 files changed, 211 insertions(+), 18 deletions(-)
--
2.25.1