Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2799234imm; Wed, 3 Oct 2018 09:19:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV60PVr25DO5gqxi2XjOT9bfIkVM3TqMWO4VGQ5+j+Nw+M+7nsHKlt+7lmEuZ6JWgmp2946ws X-Received: by 2002:a65:4301:: with SMTP id j1-v6mr2004608pgq.279.1538583545144; Wed, 03 Oct 2018 09:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538583544; cv=none; d=google.com; s=arc-20160816; b=bqeE16bjBPTPLykdDbv38OUoWCqfqshCVS2eqlJbtIZMOqFjh5/oOnNHa9vDrnaNRx 4dwCJPQDaqV3gliEPFAyiVJRBMa3GWTtEReTJSclM8usoH84cvmV5CJ7EWWUQYL8DFxH h3s1wsbTLYthQDZ+A+Bl7docaoPRGGDY/pDaJ2Nch8eJU2RVswwlFG/wj7NHpz8A6Eey r3hnnml+T5T/SrVR6oSTb0aqQvqZAheBp1K0pADizxn+UmXI2DhalK8k0r7x0luSI4x8 1oRMHmj0j9K4nXCd5ULnsBgvlBQKc61U/EFv7m69MIwQPSbed1DOJFmGpSgxzjdXJPsq 7Plg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=xK0EDHucsZp+sni/aks2RI+o1riP0qvwu9UKEiU3h0s=; b=h3bRHFx0jMPZ8lH7+BqnOWnknCEtAWXja0HzCQ1g5UWdyyAXtpLQzQMWd8U0wEPPrh fJM+UYV2yzg8hYGvIubULjF3oVv53anqXFZRF1Q0SYSKCixCLeOVeISQEXL17hKktUTv lHzGz6fTBqGhlZDUtCuXSNWZlFyMTVfyePn6LJgNN98Fn2ZGYMld7T9egrG91XscNTXM yWugRARp+6VDjb+5lt7UM/uX09FNeq9I7PveEPU4hgxCXsd2a+9HXhvyxE6WyQany3UB 6yIty43hdJOhEc2iYpR8kZ4pq7Kii2hGx2dMh5NL9Px8iJsTKK0E9Pf+bLhvtuZ/5oA0 p8gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6-v6si1775907pfh.266.2018.10.03.09.18.40; Wed, 03 Oct 2018 09:19:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbeJCXH3 (ORCPT + 99 others); Wed, 3 Oct 2018 19:07:29 -0400 Received: from mga07.intel.com ([134.134.136.100]:11379 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbeJCXH3 (ORCPT ); Wed, 3 Oct 2018 19:07:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2018 09:18:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,336,1534834800"; d="scan'208";a="91864852" Received: from 2b52.sc.intel.com ([143.183.136.147]) by fmsmga002.fm.intel.com with ESMTP; 03 Oct 2018 09:12:32 -0700 Message-ID: Subject: Re: [RFC PATCH v4 09/27] x86/mm: Change _PAGE_DIRTY to _PAGE_DIRTY_HW From: Yu-cheng Yu To: Matthew Wilcox Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Date: Wed, 03 Oct 2018 09:07:52 -0700 In-Reply-To: <20181003133856.GA24782@bombadil.infradead.org> References: <20180921150351.20898-1-yu-cheng.yu@intel.com> <20180921150351.20898-10-yu-cheng.yu@intel.com> <20181003133856.GA24782@bombadil.infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-10-03 at 06:38 -0700, Matthew Wilcox wrote: > On Fri, Sep 21, 2018 at 08:03:33AM -0700, Yu-cheng Yu wrote: > > We are going to create _PAGE_DIRTY_SW for non-hardware, memory > > management purposes. Rename _PAGE_DIRTY to _PAGE_DIRTY_HW and > > _PAGE_BIT_DIRTY to _PAGE_BIT_DIRTY_HW to make these PTE dirty > > bits more clear. There are no functional changes in this > > patch. > > I would like there to be some documentation in this patchset which > explains the difference between PAGE_SOFT_DIRTY and PAGE_DIRTY_SW. I will add some comments for the difference between PAGE_SOFT_DIRTY and PAGE_DIRTY_SW. Yu-cheng