Skip to content

Numabalancing preserve write fix

Aneesh Kumar K.V linux-mm linuxppc-dev lkml 3 versions – Applied

Status from this message: [merged] powerpc-mm-autonuma-switch-ppc64-to-its-own-implementeation-of-saved-write.patch removed from -mm tree

Get series with b4
b4 am 1487498625-10891-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyApplied 3/3
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes from V1 from the cover letter

* Update the patch so that it apply cleanly to upstream.
* Add acked-by from Michael Neuling

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/autonuma: Let architecture override how the write bit should be stashed in a protnone pte.include/asm-generic/pgtable.h mm/huge_memory.c mm/memory.c +1 more+22 -60 repliesApplied
2/3mm/ksm: Handle protnone saved writes when making page write protectinclude/asm-generic/pgtable.h mm/ksm.c+15 -20 repliesApplied
3/3powerpc/mm/autonuma: Switch ppc64 to its own implementeation of saved writearch/powerpc/include/asm/book3s/64/pgtable.h+45 -70 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchMichael Neuling
1/3A-b
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/3] Numabalancing preserve write fix

This patch series address an issue w.r.t THP migration and autonuma preserve write feature. migrate_misplaced_transhuge_page() cannot deal with concurrent modification of the page. It does a page copy without following the migration pte sequence. IIUC, this was done to keep the migration simpler and at the time of implemenation we didn't had THP page cache which would have required a more elaborate migration scheme. That means thp autonuma migration expect the protnone with saved write to be done such that both kernel and user cannot update
the page content. This patch series enables archs like ppc64 to do that. We are good with the hash translation mode with the current code, because we never create a hardware page table entry for a protnone pte.

Changes form V2:
* Fix kvm crashes due to ksm not clearing savedwrite bit.

Changes from V1:
* Update the patch so that it apply cleanly to upstream.
* Add acked-by from Michael Neuling

Aneesh Kumar K.V (3):
mm/autonuma: Let architecture override how the write bit should be
stashed in a protnone pte.
mm/ksm: Handle protnone saved writes when making page write protect powerpc/mm/autonuma: Switch ppc64 to its own implementeation of saved
write

 arch/powerpc/include/asm/book3s/64/pgtable.h | 52 ++++++++++++++++++++++++----
 include/asm-generic/pgtable.h                | 24 +++++++++++++
 mm/huge_memory.c                             |  6 ++--
 mm/ksm.c                                     |  9 +++--
 mm/memory.c                                  |  2 +-
 mm/mprotect.c                                |  4 +--
 6 files changed, 82 insertions(+), 15 deletions(-)
Signature · 7 lines
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>