linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Rework the pte handling for hardware AF/DBM
@ 2017-08-18 17:25 Catalin Marinas
  2017-08-18 17:25 ` [PATCH v2 1/5] arm64: Convert pte handling from inline asm to using (cmp)xchg Catalin Marinas
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Catalin Marinas @ 2017-08-18 17:25 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

That's the second version of the pte accessors reworking series (first
version at [1]).

Changes since v1:

- READ_ONCE moved out of the cmpxchg loops since cmpxchg already returns
  the old value (probably more efficient with LSE atomics)

- The first patch from the first series has been merged upstream (cc
  stable)

- Kconfig entry kept just to disable the hardware feature but the code
  paths all assume hardware AF/DBM

- PAGE_COPY(_EXEC) removed as they just duplicate PAGE_READONLY(_EXEC)

I kept the review-by tags in place as the logic is unchanged but feel
free to look at the patches again.

Thanks.

[1] http://lkml.kernel.org/r/20170725135308.18173-1-catalin.marinas at arm.com

Catalin Marinas (5):
  arm64: Convert pte handling from inline asm to using (cmp)xchg
  kvm: arm64: Convert kvm_set_s2pte_readonly() from inline asm to
    cmpxchg()
  arm64: Move PTE_RDONLY bit handling out of set_pte_at()
  arm64: Ignore hardware dirty bit updates in ptep_set_wrprotect()
  arm64: Remove the !CONFIG_ARM64_HW_AFDBM alternative code paths

 arch/arm64/include/asm/kvm_mmu.h      |  21 +++----
 arch/arm64/include/asm/pgtable-prot.h |  18 +++---
 arch/arm64/include/asm/pgtable.h      | 103 ++++++++++++++--------------------
 arch/arm64/kernel/hibernate.c         |   4 +-
 arch/arm64/kvm/hyp/s2-setup.c         |   2 +-
 arch/arm64/mm/fault.c                 |  30 ++++------
 6 files changed, 72 insertions(+), 106 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-21 10:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 17:25 [PATCH v2 0/5] Rework the pte handling for hardware AF/DBM Catalin Marinas
2017-08-18 17:25 ` [PATCH v2 1/5] arm64: Convert pte handling from inline asm to using (cmp)xchg Catalin Marinas
2017-08-18 17:25 ` [PATCH v2 2/5] kvm: arm64: Convert kvm_set_s2pte_readonly() from inline asm to cmpxchg() Catalin Marinas
2017-08-18 17:26 ` [PATCH v2 3/5] arm64: Move PTE_RDONLY bit handling out of set_pte_at() Catalin Marinas
2017-08-18 17:26 ` [PATCH v2 4/5] arm64: Ignore hardware dirty bit updates in ptep_set_wrprotect() Catalin Marinas
2017-08-18 17:26 ` [PATCH v2 5/5] arm64: Remove the !CONFIG_ARM64_HW_AFDBM alternative code paths Catalin Marinas
2017-08-18 17:29 ` [PATCH v2 0/5] Rework the pte handling for hardware AF/DBM Will Deacon
2017-08-21 10:41   ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).