Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2060483ybz; Sun, 26 Apr 2020 10:13:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIv4/JJaiIZsc+oM9LZnr6B7d0gffKaYJ48iNkJMGfVD61MMXpGyFU/7I5HlyMs/sU+ZD6n X-Received: by 2002:a05:6402:2214:: with SMTP id cq20mr3078185edb.320.1587921204022; Sun, 26 Apr 2020 10:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587921204; cv=none; d=google.com; s=arc-20160816; b=F7GF6so3AOMBL+UIQzkcsA5lJMIARjjbBWIjlHlttJjm8mH4UMhVfOxzeEVTrdLIrh FnSlBxwPE8z1n9bgd5bylhFAbf9Z8vyKNP2D9Eqz6aO5nxvxiqU5Ar9M4M9as2q6S4vd twskF8kg7QjgnXVQCfyHK7L6azAv5H1XXzzctUZ6OJLVN/bkzk/Sbe8pIkzfYDPKHxZi j2Y9SeF2OZE8jA0u4Esq//Fqfk8GjtIjFY5Zmm/bTZ4xnUr4itVkKBg88mTvI6rnjy3r Xp+j8TWWIaRPU/1h9d3bfXzllAbzd8u8r1M/8vwhY3ikvbAXAjHyvl5xtL50r41jkVGN Ap1w== 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:message-id:cc:to:subject:from:date :dkim-signature; bh=CNV6l4isjrOBsCEJPV/4tGbmk1UULky87Fc71u/Vgqo=; b=H6PrSumO+J3ngzYx0T5rpmtD1022VIkAyvYv85Nrm7Lz4PbYyI6w5spgxLRt1qWgJR 9+bzPA7M8+ilDiIi7hXijxqhBrRSRU75FpzU0AS8rBQJVXsyGdeB80DXz+C0qTCYvQ+G C+s8kYYmWSTLD/XYvZP0dIirvbVSUrTeHmAgfauoBnefPVg0cvZHRa8WQQuavINoHOhf t9zYpmfGD+s931uDGHgf9aZSuSzL/eL7wY99yMiXfDmP28krNOUL1nyn7Prj5G+DcTUF fXoCq3Edn2JCM4IMZAGlbGF6F5MtFqY+az4CBXjmZYB+cHIHOBFp6IHJTGNOXvOePfPu XXcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=JeZ7oaAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si6861276ejb.508.2020.04.26.10.13.01; Sun, 26 Apr 2020 10:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=JeZ7oaAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbgDZRJj (ORCPT + 99 others); Sun, 26 Apr 2020 13:09:39 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:46274 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgDZRJj (ORCPT ); Sun, 26 Apr 2020 13:09:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1587920977; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CNV6l4isjrOBsCEJPV/4tGbmk1UULky87Fc71u/Vgqo=; b=JeZ7oaABfsBG/baBMbr6RXayjhNYmmLA/gwNVNjmbxr3AW68cqlfiTggs2Y59zuQUGL5Vg U5lFB9GzsDI7EroRJRc/IAbyonmEC2OteeKUGcvkiWC4ccvl4s7VXyyza6I4tZBrRYH80p yVdZ0m6fdd3i6OyB/j2bjgBdPc0QaI0= Date: Sun, 26 Apr 2020 19:09:26 +0200 From: Paul Cercueil Subject: Re: [PATCH] mips/mm: Add page soft dirty tracking To: Thomas Bogendoerfer Cc: Guoyun Sun , Paul Burton , Daniel Silsby , Jiaxun Yang , Dmitry Korotin , Andrew Morton , Steven Price , Geert Uytterhoeven , Mike Rapoport , Anshuman Khandual , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, TieZhu Yang , Xuefeng Li Message-Id: In-Reply-To: <20200426165441.GA10053@alpha.franken.de> References: <1587460527-13986-1-git-send-email-sunguoyun@loongson.cn> <20200426165441.GA10053@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, Le dim. 26 avril 2020 =E0 18:54, Thomas Bogendoerfer=20 a =E9crit : > On Tue, Apr 21, 2020 at 05:15:27PM +0800, Guoyun Sun wrote: >> User space checkpoint and restart tool (CRIU) needs the page's=20 >> change >> to be soft tracked. This allows to do a pre checkpoint and then dump >> only touched pages. >>=20 >> Signed-off-by: Guoyun Sun >> --- >> arch/mips/Kconfig | 1 + >> arch/mips/include/asm/pgtable-bits.h | 8 ++++-- >> arch/mips/include/asm/pgtable.h | 48=20 >> ++++++++++++++++++++++++++++++++++-- >=20 > this breaks all 32bit builds where CPU support RIXI, because it=20 > overflows > pgtable_bits. I think we'd need to make PTEs 64-bit at some point. We wanted to add support for huge-pages on 32-bit MIPS and faced the=20 same issue. -Paul > Thomas. >=20 > -- > Crap can work. Given enough thrust pigs will fly, but it's not=20 > necessarily a > good idea. [ RFC1925,=20 > 2.3 ]