From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8A28C55194 for ; Sun, 26 Apr 2020 17:09:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F9E2206DD for ; Sun, 26 Apr 2020 17:09:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="JeZ7oaAB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbgDZRJk (ORCPT ); Sun, 26 Apr 2020 13:09:40 -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 ]