From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbdBSKER (ORCPT ); Sun, 19 Feb 2017 05:04:17 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55984 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751331AbdBSKEP (ORCPT ); Sun, 19 Feb 2017 05:04:15 -0500 From: "Aneesh Kumar K.V" To: akpm@linux-foundation.org, Rik van Riel , Mel Gorman , paulus@ozlabs.org, benh@kernel.crashing.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "Aneesh Kumar K.V" Subject: [PATCH V3 0/3] Numabalancing preserve write fix Date: Sun, 19 Feb 2017 15:33:42 +0530 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17021910-0024-0000-0000-000015F4F267 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006644; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000203; SDB=6.00823998; UDB=6.00403307; IPR=6.00601452; BA=6.00005152; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014346; XFM=3.00000011; UTC=2017-02-19 10:04:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17021910-0025-0000-0000-000048E2E90F Message-Id: <1487498625-10891-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-19_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702190102 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4