From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965052AbbJVJrL (ORCPT ); Thu, 22 Oct 2015 05:47:11 -0400 Received: from out4133-34.mail.aliyun.com ([42.120.133.34]:49378 "EHLO out4133-34.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932412AbbJVJrG (ORCPT ); Thu, 22 Oct 2015 05:47:06 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03288;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=3;SR=0; Reply-To: "Hillf Danton" From: "Hillf Danton" To: =?iso-8859-1?Q?J=E9r=F4me_Glisse?= Cc: "linux-kernel" , Subject: Re: [PATCH v11 07/14] HMM: mm add helper to update page table when migrating memory v2. Date: Thu, 22 Oct 2015 17:46:47 +0800 Message-ID: <062101d10cae$91d986d0$b58c9470$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdEMrkzIREqdQe5zRYyCMb7gy08YNA== Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > This is a multi-stage process, first we save and replace page table > entry with special HMM entry, also flushing tlb in the process. If > we run into non allocated entry we either use the zero page or we > allocate new page. For swaped entry we try to swap them in. > Please elaborate why swap entry is handled this way.