Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3230410pxb; Tue, 13 Apr 2021 23:45:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhESg/YfGyNTEAmVhlNdrpPDbntuktFBouQmxitBRwr8BA4qd1Mbq8F7hNixx9vY0UxxJL X-Received: by 2002:a17:906:2a0f:: with SMTP id j15mr32989754eje.159.1618382744445; Tue, 13 Apr 2021 23:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618382744; cv=none; d=google.com; s=arc-20160816; b=O6Ai/jxzXqFsFmzgScPTunHzEJ8bQII1ka9o7OGXaPV8GE+R5HJmyvT04zqGWDyqef scKGPDhT5u8NljoX/Bhyz3Vs6JCUFZAW/NN+gUTaSrG8fOQWu41Rc6A1zcOSphtPjyAY D/vp2xp1PPWKEJzSgvHQlnmxwNaYN6ezfAmI828/8PgLeXLAVVrZUWKfim0LdcJ5mhvC cIDoZEb2a6dxjaExRIeBFvjvXDr9+7y6Ilf8qbd0AswxRWmiIF6l7sTFZWHvIAeGqzcr 3rrY45KWS4rdvUlLexOs36Ags8NEKL28IYk1L/vfjgIelYUtvOY6iSTbbZZkUB+JMi+l bi2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l7+E0a1RmQtz9OdkPBWVwzVjeeLrb1IaJD410lr0Tlc=; b=tMJW0QwkCOvloQNzlplxYlSzkkpMVKwG4EAuPP5v4pIx3+K6tc0x6IGMoV6ZHrqAAE Md/+vDwVxFhSIuWXkdzomYTP2p5oZrB1YhVzFCVPb18hoSMfqMtpQx9JRFmsajD7q5Ob 791FpRJZPg5kzJayBgaWDtGk9at2vK1c6sqYDTPoI2f8qsudfxgRd4WUCz4LuLzoVbw1 +S/JRTjjDww+juqZnVxsAL4sfbcSwGxro63/TV6c32AMeV5J+sDS5H6YBcigGBGwtTZL 50Fow6ycQyKtwVZOdEIbZgMdQAe6bRk8vyCtpEzzX33/q8LjVKAyWn6sOBb/nCNKMiYm VSfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fD0sYZLA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si12197043edu.30.2021.04.13.23.45.21; Tue, 13 Apr 2021 23:45:44 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fD0sYZLA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348255AbhDMUn3 (ORCPT + 99 others); Tue, 13 Apr 2021 16:43:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25652 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbhDMUn3 (ORCPT ); Tue, 13 Apr 2021 16:43:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618346588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=l7+E0a1RmQtz9OdkPBWVwzVjeeLrb1IaJD410lr0Tlc=; b=fD0sYZLA3YodHgRIFQTQBHzMknKBGjWYWq7iX8NtN9lxtrlBjgVjEMyHc2hPkGrMW50EkW 6sEdZLb84o0EalDsAqrp3ldCzkSfIaj1X7Ep8NkC5Pw7sIZ0n74Ohu1p9YOYJ7a8lcgCDK GVm66+oZt3joLX/ygM5FNm7iHCtREXk= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-517-SZSsNe_FMUmot1ePmnCcMA-1; Tue, 13 Apr 2021 16:43:07 -0400 X-MC-Unique: SZSsNe_FMUmot1ePmnCcMA-1 Received: by mail-qv1-f69.google.com with SMTP id u7so10818825qvf.5 for ; Tue, 13 Apr 2021 13:43:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l7+E0a1RmQtz9OdkPBWVwzVjeeLrb1IaJD410lr0Tlc=; b=DmtAypGIaEjCX/a0Rn4ul/0E8YC+SA6cUzNrXpCNYDcEUHQX0lR+K9tJK6nuVa0xdy 2xdcMEapw+ZOVyx0AxXJsHERpcCec+VDuVtBC780QiLW/5u4/FhqXJLgXbX7hkNqG9hB je5uW3XB4no37yRbhKcNfyuLHdA74D9iqBkTa4yrtq9bdo2TKsnuZldRoX8PGMJxHQqG RO/1RXFQ34lOLfvprU+lmgKNG/2Ec4v5zhGi+2ncsaGGsvt4KojRD2yg1ji/L+v+aY6u VAtuU5uneQmNTL13zNpn75hPN4a1QSOf5q91Mlhxkgc2/jd4XBPN41OB8TA6b7cvseAu kNcw== X-Gm-Message-State: AOAM533792Zjfv4HAL4bEmrVaqjQGhWVpx3dkiufzevRrv8T26AU8+rz uR4viszueNrcVlkc0M+NVtCVlVKBLUOtTjV0xWCN/gOaij9rkmgNZy2uRFWHcdedDxZ41ieJvge TFvEr1knluzrSRfiTPtgjFYPr X-Received: by 2002:ac8:529a:: with SMTP id s26mr9139709qtn.86.1618346586712; Tue, 13 Apr 2021 13:43:06 -0700 (PDT) X-Received: by 2002:ac8:529a:: with SMTP id s26mr9139679qtn.86.1618346586512; Tue, 13 Apr 2021 13:43:06 -0700 (PDT) Received: from xz-x1 (bras-base-toroon474qw-grc-88-174-93-75-154.dsl.bell.ca. [174.93.75.154]) by smtp.gmail.com with ESMTPSA id i2sm3031068qtg.0.2021.04.13.13.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 13:43:05 -0700 (PDT) Date: Tue, 13 Apr 2021 16:43:04 -0400 From: Peter Xu To: Axel Rasmussen Cc: Alexander Viro , Andrea Arcangeli , Andrew Morton , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Subject: Re: [PATCH v2 3/9] userfaultfd/shmem: support minor fault registration for shmem Message-ID: <20210413204304.GG4440@xz-x1> References: <20210413051721.2896915-1-axelrasmussen@google.com> <20210413051721.2896915-4-axelrasmussen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210413051721.2896915-4-axelrasmussen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 10:17:15PM -0700, Axel Rasmussen wrote: > This patch allows shmem-backed VMAs to be registered for minor faults. > Minor faults are appropriately relayed to userspace in the fault path, > for VMAs with the relevant flag. > > This commit doesn't hook up the UFFDIO_CONTINUE ioctl for shmem-backed > minor faults, though, so userspace doesn't yet have a way to resolve > such faults. > > Signed-off-by: Axel Rasmussen Everything looks right to me, but it'll be great if Andrea or Hugh will have a look too. Acked-by: Peter Xu -- Peter Xu