Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2046615ybz; Sun, 26 Apr 2020 09:56:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJUCeTQM7gqpmwyCcl1VpkYBfcdpDjbQk0/K3NqWBYVBSEgghwU5bKKTK99AmkKv+u0VizR X-Received: by 2002:a05:6402:1841:: with SMTP id v1mr15053334edy.182.1587920201785; Sun, 26 Apr 2020 09:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587920201; cv=none; d=google.com; s=arc-20160816; b=ogX9J/qVzK7IRPDbLC3VnTWxq4srRcmzij66obZAtwvQy+afwWqu1oQG6nsv+Txrz8 WkL9EOHBHXt1KJ4TZpmuEaXdBVdSyURsQStQLtVidxU9tptZx7B9gec3AV5EMpDHTAaZ mj/ddpwRATQLpQDPoSCVymz1FxwD8DMqA/PP06a+McnA9RA2fb45tIhfeVLDZ/93ZXSv U5Rbv1BvSQ9XkalBUy4PzNVVPHPSdEkYrLXU+IlH5aLZYTTVFChbV7nI9nt61gwq5J4i k1pbP34/RD36i9BR2qxLCGLDppOuSIDFY3YhFPuGylrjV42RLOjUF2xwRYpxqIzmugl3 RXmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+6l6mC867/iPt6lgNoTItgwcfH8NFsKrefJlcehaXTw=; b=Cjtr4heumSWaqr2LkP+Gp1GgF1+H/z9GCd5cIzOzYuLxcCnYI9QNjA/il7zHyZUDVk 9BS2FenI7qhe7Zyek7/61pBNhAh/6oGO7Us8y2fg4vn9HmcdD2uGt3KgKpKEQPPXUEAn 7jKMweCHqqU4pJ83Vf3oUK82qy557QrILYzHx7qwpg8aBMbDaNgF00WMiGO79OwBYxB/ Z0CazMZVbWA8xv85XEThc6W/05TP3kN97jS5ktpwfaXhIXnzMHxVVAn49gnXthhrmCSk foH/n3603MsrUq5/QplbxaH+gjyn2t7xbP2l7OwGEdiqNzLM/Hh2Js4UYaK30njxXZ4l 4GHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb14si6816459edb.529.2020.04.26.09.56.18; Sun, 26 Apr 2020 09:56:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbgDZQyz (ORCPT + 99 others); Sun, 26 Apr 2020 12:54:55 -0400 Received: from elvis.franken.de ([193.175.24.41]:56034 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726152AbgDZQyz (ORCPT ); Sun, 26 Apr 2020 12:54:55 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jSkYN-00023Z-00; Sun, 26 Apr 2020 18:54:51 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 2CE3FC0325; Sun, 26 Apr 2020 18:54:42 +0200 (CEST) Date: Sun, 26 Apr 2020 18:54:42 +0200 From: Thomas Bogendoerfer To: Guoyun Sun Cc: Paul Burton , Daniel Silsby , Jiaxun Yang , Paul Cercueil , 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 Subject: Re: [PATCH] mips/mm: Add page soft dirty tracking Message-ID: <20200426165441.GA10053@alpha.franken.de> References: <1587460527-13986-1-git-send-email-sunguoyun@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587460527-13986-1-git-send-email-sunguoyun@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 05:15:27PM +0800, Guoyun Sun wrote: > User space checkpoint and restart tool (CRIU) needs the page's change > to be soft tracked. This allows to do a pre checkpoint and then dump > only touched pages. > > Signed-off-by: Guoyun Sun > --- > arch/mips/Kconfig | 1 + > arch/mips/include/asm/pgtable-bits.h | 8 ++++-- > arch/mips/include/asm/pgtable.h | 48 ++++++++++++++++++++++++++++++++++-- this breaks all 32bit builds where CPU support RIXI, because it overflows pgtable_bits. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]