Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6872302rwr; Tue, 2 May 2023 06:43:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZSNQUiCQj2bMwOz0i6UA52pw6iHtlAkQl7D+Myp9JxSQgZkEfd42u029Csy3OYiyibi2b X-Received: by 2002:a17:903:244c:b0:1ab:1a6:34bc with SMTP id l12-20020a170903244c00b001ab01a634bcmr5170271pls.9.1683035012863; Tue, 02 May 2023 06:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683035012; cv=none; d=google.com; s=arc-20160816; b=AT8s1WqBEuFo5PzCHWvhltXxMFT+cqPjEyedIDxVMCKWEmbuQbSQ7MbOBNslMjCIBL fADD7oypyFlBWXleRlFz5xfYOyj382qQwF/h8DVStGZqDXdZZwQLMbKb4TQDsYNPeMlL To2j5BzYdsAy5jADH8Ij9e73TfGcWre00aLM0FW+Ea4o2BHqSspRNfdJglAbqVVxQY3t gITAywdOumy+D3iWFH3tejI9qXdOmymHO0dovx8HJB2piKpvAZwtfamf7OqK18bIH7Rm BA3yNsUcgRAfE7aim+1yNfL3LexC0Oc5NWhKX2OyOw82fzwTwz+yA7Wi/vzIrSpbB0NJ NN6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ChfrC0Na3lwoOCssg8XYm2tZsAjdTOPFW5RxWJ9WF6Q=; b=lx6UCZO1slRUgZf99+qqLNEdJvoaWynB3zTqOHQT/L4n+CaPnNiQ4YHnKZb8gu/36n WIjNk5Xatv2Nn1ojneE4YIMjI2YYgRFlX/whH/zPHIwNiXPcQOYMPwEYtfFhWVQ/D9Om kyqkeodL6Nhfgf0ll9mYI6jNwwjxroqETtdU/y8UWfeQlDJHjHQeY0PNeXNki+W4SifX +bEqAcgY/Yfk2SbHdNJVwQBQVOWm3zL9S2Hr3x2OWK8u5IAxeI7ZQBqVDHKMPfbwNIu0 kY4cUYzVaToVclkQclS/R39jF2e9lHEjUFo7Cli4j5xnDMxqE3FEcw4Uz/z9+s9h1Lv6 LmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N2PzVlqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170902714800b001a68f933777si29025905plm.245.2023.05.02.06.43.20; Tue, 02 May 2023 06:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N2PzVlqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234427AbjEBNnE (ORCPT + 99 others); Tue, 2 May 2023 09:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234354AbjEBNmn (ORCPT ); Tue, 2 May 2023 09:42:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5756A5A for ; Tue, 2 May 2023 06:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683034803; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ChfrC0Na3lwoOCssg8XYm2tZsAjdTOPFW5RxWJ9WF6Q=; b=N2PzVlqtrzny6jszgrmwbbCoPktv97jFknHGqq7Icj4/VN1z6oo3ssHZJh5rUHThxMDe3X YLLLCKITeaZ3ymxCGvIQRKMw2SFZzvy9alokc76N0KqISPH9Om+CXFKEK8WPfd3l55qyC0 3lUeZZ7RiT9+5U5HY7scXYWW0r0BmZs= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-640-crFUQJOyO2-x_kFqUXikrQ-1; Tue, 02 May 2023 09:39:55 -0400 X-MC-Unique: crFUQJOyO2-x_kFqUXikrQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3f171d38db3so23507555e9.0 for ; Tue, 02 May 2023 06:39:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683034794; x=1685626794; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ChfrC0Na3lwoOCssg8XYm2tZsAjdTOPFW5RxWJ9WF6Q=; b=QdFoeJc+Btc9f65jXsHNCwObKT3k9gFv3sNhbrG3yloAzQmwpqR1sr/+NpgFn8YHbm O5MUCESpTPNYL2OAKvkFmmqXIrdwmkEflX8OX+HWCeBfYXoSk8SZAZFjg1wx0NQro+5S 97Sh3a3ZcJBnrJ+MKN1EXO3+DRFrAknziiUyr/EFOXY5DrD+Q4IJxF7AcN0UyeX0Lw0g Fhz1BKj8cPCc8l4SUaHoRZDvF0p0VenWgR9kcXWVbkXwZogWWZvSe9VWUv2gb+utwsfc kvQYLD9fVIoXvAEpWUMfESjuw6SXrX/toH/l0f1OqHOXP1xEObsJw1SfyaFxWpm2/Znr 2usg== X-Gm-Message-State: AC+VfDwYw/BGqX/+CiDSqkXikUG4U/NlKbRcM1ra0VrKpiww7ejO6e8V m4fyqBmkkLr4JE2fUz3Y8baUTJ06bsQdr4glzt7sZlhvF70WDcn45+8bPXDhjrALHXex3IziV4A mYVmBUFvpuLNV0211vl1WfuGd X-Received: by 2002:a7b:c047:0:b0:3f1:979f:a734 with SMTP id u7-20020a7bc047000000b003f1979fa734mr12143033wmc.11.1683034793779; Tue, 02 May 2023 06:39:53 -0700 (PDT) X-Received: by 2002:a7b:c047:0:b0:3f1:979f:a734 with SMTP id u7-20020a7bc047000000b003f1979fa734mr12142986wmc.11.1683034793381; Tue, 02 May 2023 06:39:53 -0700 (PDT) Received: from ?IPV6:2003:cb:c700:2400:6b79:2aa:9602:7016? (p200300cbc70024006b7902aa96027016.dip0.t-ipconnect.de. [2003:cb:c700:2400:6b79:2aa:9602:7016]) by smtp.gmail.com with ESMTPSA id iz14-20020a05600c554e00b003f175954e71sm38857931wmb.32.2023.05.02.06.39.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 06:39:52 -0700 (PDT) Message-ID: Date: Tue, 2 May 2023 15:39:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v6 3/3] mm/gup: disallow FOLL_LONGTERM GUP-fast writing to file-backed mappings Content-Language: en-US To: Jason Gunthorpe Cc: Christian Borntraeger , Lorenzo Stoakes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Jens Axboe , Matthew Wilcox , Dennis Dalessandro , Leon Romanovsky , Christian Benvenuti , Nelson Escobar , Bernard Metzler , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Bjorn Topel , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Brauner , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , linux-fsdevel@vger.kernel.org, linux-perf-users@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Oleg Nesterov , John Hubbard , Jan Kara , "Kirill A . Shutemov" , Pavel Begunkov , Mika Penttila , Dave Chinner , Theodore Ts'o , Peter Xu , Matthew Rosato References: <7d56b424-ba79-4b21-b02c-c89705533852@lucifer.local> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.05.23 15:36, Jason Gunthorpe wrote: > On Tue, May 02, 2023 at 03:28:40PM +0200, David Hildenbrand wrote: >> On 02.05.23 15:10, Jason Gunthorpe wrote: >>> On Tue, May 02, 2023 at 03:04:27PM +0200, Christian Borntraeger wrote: >>> \> > We can reintroduce a flag to permit exceptions if this is really broken, are you >>>>> able to test? I don't have an s390 sat around :) >>>> >>>> Matt (Rosato on cc) probably can. In the end, it would mean having >>>> >>>> >>>> >>> >>> This s390 code is the least of the problems, after this series VFIO >>> won't startup at all with this configuration. >> >> Good question if the domain would fail to start. I recall that IOMMUs for >> zPCI are special on s390x. [1] > > Not upstream they aren't. > >> Well, zPCI is special. I cannot immediately tell when we would trigger >> long-term pinning. > > zPCI uses the standard IOMMU stuff, so it uses a normal VFIO container > and the normal pin_user_pages() path. @Christian, Matthew: would we pin all guest memory when starting the domain (IIRC, like on x86-64) and fail early, or only when the guest issues rpcit instructions to map individual pages? -- Thanks, David / dhildenb