[RFC 0/4] arm64/mm: Clean up pte_dirty() state management
Anshuman Khandual
anshuman.khandual at arm.com
Thu Jul 6 22:33:27 PDT 2023
These pte_dirty() changes make things explicitly clear, while improving the
code readability. This optimizes HW dirty state transfer into SW dirty bit.
This also adds a new arm64 documentation explaining overall pte dirty state
management in detail. This series applies on the latest mainline kernel.
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Will Deacon <will at kernel.org>
Cc: Ryan Roberts <ryan.roberts at arm.com>
Cc: Mark Rutland <mark.rutland at arm.com>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: David Hildenbrand <david at redhat.com>
Cc: Jonathan Corbet <corbet at lwn.net>
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-kernel at vger.kernel.org
Cc: linux-doc at vger.kernel.org
Anshuman Khandual (4):
arm64/mm: Add SW and HW dirty state helpers
arm64/mm: Call pte_sw_mkdirty() while preserving the HW dirty state
arm64/mm: Add pte_preserve_hw_dirty()
docs: arm64: Add help document for pte dirty state management
Documentation/arch/arm64/index.rst | 1 +
Documentation/arch/arm64/pte-dirty.rst | 95 ++++++++++++++++++++++++++
arch/arm64/include/asm/pgtable.h | 66 ++++++++++++++----
3 files changed, 147 insertions(+), 15 deletions(-)
create mode 100644 Documentation/arch/arm64/pte-dirty.rst
--
2.30.2
More information about the linux-arm-kernel
mailing list