Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp24793pxb; Tue, 12 Jan 2021 18:52:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8wQea2KfKaVp0UalA0KSN5NXmzXJAYnBtXoNWn+1RBDjFPoGET4RlrBSHoDf40AEn7zba X-Received: by 2002:aa7:d9c1:: with SMTP id v1mr41700eds.115.1610506330613; Tue, 12 Jan 2021 18:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610506330; cv=none; d=google.com; s=arc-20160816; b=exLfZxer7Adn5ekRsbKMiExJgI563ojlm9rYr2k2t1xk5tkAYn/rHHCLn303FmP+c6 0rqXIw462yfa6Bo+V9bHp9wVXNFIf4Qmbjyo0atIkGDFz2gCnDuTTV85EeI0RJULrH90 39ATzLYyWR0FVaYnvaHbcwms6I7A49RZmrMpjkPtakXdzHEfBdvg5tLHrikk1dNTKVQx 4bBUQL5Xz0vcI9L96fTXwgwiOwBVlEm/U1fBfwRvRs2fRznkcW95gxBJGSjrtnQbHgw7 QklOQjDoQ/VS5Gk161prKZH2hyR/XWh3CAHFMhOe0tdDcRVSFES8FoxGHtBsSa40fUFQ Co1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=391/aBiA2qochS6pTL8d1JkuyejrSRQMbWVrhMmzLt4=; b=y0MlJnRSioBPU6vEsY9FfmZvHG89kAkN7atKL0mm2CeFcn50j7csxusUDUr38/NoaM U4vGfkGl9qs4wYqgUnygwF/mSI6y86gAy4gqlD6N8Mfbn3hJW167RK1tLiJmcOgJD6ea P5OcRX6zGR8Koh7DzMw5v0sno2D+93mZ6cUEvyxk0et5eJpUIe1WqkLGhFEM08hi4Fxl LQbi0MyX5lyIU16oN05K/WC1iDBYONcoKuqeYaoUhZgDsbA8rY54Tbzun5hS8pawHjD4 v5zQ8cBqQL/uNDCehm/cXVpgzRoETceyH44x8KWyaY5d/uieqqVvnDKe4zt5/vO+1MSx RDYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZeUW+1KZ; 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 g24si298694ejh.77.2021.01.12.18.51.46; Tue, 12 Jan 2021 18:52:10 -0800 (PST) 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=pass header.i=@linux-foundation.org header.s=google header.b=ZeUW+1KZ; 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 S2390310AbhALV43 (ORCPT + 99 others); Tue, 12 Jan 2021 16:56:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387474AbhALV4W (ORCPT ); Tue, 12 Jan 2021 16:56:22 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB351C061575 for ; Tue, 12 Jan 2021 13:55:41 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id o19so5684470lfo.1 for ; Tue, 12 Jan 2021 13:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=391/aBiA2qochS6pTL8d1JkuyejrSRQMbWVrhMmzLt4=; b=ZeUW+1KZ7ytFAsajUvvMyuN2NCPY10FGts1P2BzghpaXEX3swAyDSiTYsoGa3AhWHI Q2Wxu7FmcMBQCZku/xesxcNmU3SNmg44700bqnq+/UIiLR618puVTmfY8J8gk8fDNPj3 Nm434rNrraYgh8Dz+YMyTwPUCEpXjdSKZTtbc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=391/aBiA2qochS6pTL8d1JkuyejrSRQMbWVrhMmzLt4=; b=W6VeO0E9lVs8vUeHWt5tIoZf6DDfNoSoJos5/MTestG9bg7ZgtTVbBntboSGO64aYu iMKR24xPfA+MEgVyQng5Au05jXnBbZNiUbDQEEWVRPuznFVgjlInQcPMX+z/ZSvieLJ7 8a4uzoIdes/0SpwNBb/NeUTva5e1s1jjgjA9KMSyvr3sYstDv1hAWSwrCOCyz3MUWj2f lFoK/remPBc5v+tXmLt5Ref2ABYe0XsasgKs8m0iKJxqd/kfbyf0pIsk9iJwtCyqTgb2 ypfg9IMCwEsq1x6Mnbk4Y4d7d/FfeVSYKaidEqoKloTQ0iu68+2/aJritejgG6oZ437t FmKg== X-Gm-Message-State: AOAM532taCip7/CDZct0zJF8nl7ZNU4wJd9PXUrvwpBRW8fPU60ycPe8 aNFBjwowxsj8C2rWUIig+2f+GgJAILlBSw== X-Received: by 2002:ac2:50d0:: with SMTP id h16mr392980lfm.300.1610488539865; Tue, 12 Jan 2021 13:55:39 -0800 (PST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id k10sm493148ljg.13.2021.01.12.13.55.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jan 2021 13:55:39 -0800 (PST) Received: by mail-lj1-f170.google.com with SMTP id e7so205495ljg.10 for ; Tue, 12 Jan 2021 13:55:38 -0800 (PST) X-Received: by 2002:a2e:6f17:: with SMTP id k23mr525749ljc.411.1610488538323; Tue, 12 Jan 2021 13:55:38 -0800 (PST) MIME-Version: 1.0 References: <20210108171517.5290-1-will@kernel.org> <20210111142402.6euyktmcnpemanf7@box> <20210112214759.GC10434@willie-the-truck> In-Reply-To: <20210112214759.GC10434@willie-the-truck> From: Linus Torvalds Date: Tue, 12 Jan 2021 13:55:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag To: Will Deacon Cc: "Kirill A. Shutemov" , Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , "Kirill A . Shutemov" , Vinayak Menon , Hugh Dickins , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 1:48 PM Will Deacon wrote: > > > And then if somebody actually needs to pass in "modified fault state" > > (ie that whole "I'm doing fault-around, so I'll use multiple > > addresses") they'd never modify the address in the fault info, they'd > > just pass the address as an explicit argument (like most cases already > > do - the "change addr or flags in vmf" is actually already _fairly_ > > rare). > > Alright then, I'll take another crack at this for v3 and see how far I > get. But please do keep it as a separate patch, and if it turns out to be ugly for whatever reason, treat it as just a "maybe that would help" suggestion rather than anything stronger.. Linus