Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1099507rwi; Mon, 10 Oct 2022 11:09:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63fiC6FX9Ng4VQxj3Q6A2qYFqHkQC87gPJFfE8V73CSmBzmuRdObOQkvI5yAE/y93/8BWh X-Received: by 2002:a17:907:2c6a:b0:78d:caaa:27a8 with SMTP id ib10-20020a1709072c6a00b0078dcaaa27a8mr2898970ejc.79.1665425375771; Mon, 10 Oct 2022 11:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665425375; cv=none; d=google.com; s=arc-20160816; b=ariGgmmAEFSteCt0Dm72jYM7bsNwnyBX9/+Nt2xB+aM8e5+mN7jZDg7owKRKacqFTd hVlW8hZzRpxHNQvoxujMHsvYAe1XDqrz1zh9h3EqGGq/Z7Z+oeaUDOtqRkGF4sWRWVaA lzuJ6WlYDa03VS6J6G4TgY17tKyY0qFxYSo70T5/jzbxLbNqJzUaeuywCu8L8CO7ssXU nVPFFzQdIzTg4zGFfZHn9RxqGTMe10YzpXHhVf6Ui5g6haxdj454FZTPI1ago6wMZkP9 hnzRHU1UNhxjR+1fwA6RtAMHgrwHT522jX8gCcffkoa6FzXh9cCB5jmw8jZs6V+RsQhF F63w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gXJyMs2OSPDhCkEvqWP7QOCysCbcI9dfM5n2nlK7y4M=; b=eJTQ2OFqwCTi1fD0u+aDCo469dWFrfV/1T6ihyGeZ0qIFIlnamLRWXFsILD09VDEsM TeVM1eRPeBwk2hUMESEGiZ6bkFxlNsTepy6vFa3qAUML74Rs26Ml6pI2N7v4Dz1NF4YE woaWgGbROpyKg0M9OblRQu9t5xOxKd9ZFqQzuhT53Cp0eOdb/BDF6phV2c7TpMUkDxLP rGn/72nWGeHzp9Wcs3jqA0AsCWrsMbg/X6AJ3bt9sempW9H5YsmTxb9rW4qdOliiQcHz +amCl9Lz5L2oIEpTRBso5bRWzGQM6gCsO8T5Bj2LUXGyfQy4iyfiduNWEWTj76Mg9Tmj 4Nyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=vMY7Y5qY; 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=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds17-20020a170907725100b00782a1b59663si11472213ejc.891.2022.10.10.11.09.09; Mon, 10 Oct 2022 11:09:35 -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=@linux.org.uk header.s=zeniv-20220401 header.b=vMY7Y5qY; 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=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiJJR6C (ORCPT + 99 others); Mon, 10 Oct 2022 13:58:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJJR6A (ORCPT ); Mon, 10 Oct 2022 13:58:00 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE4C77EAB for ; Mon, 10 Oct 2022 10:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gXJyMs2OSPDhCkEvqWP7QOCysCbcI9dfM5n2nlK7y4M=; b=vMY7Y5qYn1dGkFns1uBGhntDcK yDpsX0cqCD0d+X9Umyj7Z3jQkSlN87bNdzXHyeXIKFetvG4lpL+XZx902eLFPYna7CytqZkV7cGbq 1Ak+WtZbwAIM2HzV+TFYSUkuihsb2REcusx+G0Z1pu1Z8wVvPdALGIYBgeJq+57qml4x1xrD+sf1v 3HJ5qqRw2OlPPlhIWbubWHQRJFuvxInMXHEHQH2qXqXJdd8hoP0ar7ia0QPFv/lhXalckdgiilKZ0 /4VyOYQQ+bkg5O1L3q5tWFnWA6x4BkeuS1GySPbUhpErtYIHg08fjLeyCDzdHfmlmE1HpbS2fvXbS ate7Zqyw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1ohx26-009G76-1k; Mon, 10 Oct 2022 17:57:42 +0000 Date: Mon, 10 Oct 2022 18:57:42 +0100 From: Al Viro To: Linus Torvalds Cc: Christoph Hellwig , Sumit Garg , Phil Chang =?utf-8?B?KOW8teS4luWLsyk=?= , "ira.weiny@intel.com" , Jens Wiklander , Andrew Morton , "Fabio M. De Francesco" , "op-tee@lists.trustedfirmware.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: [PATCH 2/4] tee: Remove vmalloc page support Message-ID: References: <20221002002326.946620-1-ira.weiny@intel.com> <20221002002326.946620-3-ira.weiny@intel.com> <20221010074234.GA20788@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Mon, Oct 10, 2022 at 10:20:15AM -0700, Linus Torvalds wrote: > On Mon, Oct 10, 2022 at 12:42 AM Christoph Hellwig wrote: > > > > I suspect the best long term option would be to just pass an iov_iter.. > > Hmm. Yeah, that sounds like a workable model, and solves the problem > JensW pointed out with my simplistic "just pass a page array" approach > where you also need to keep track of how to release things. Except that then you need to get iov_iter_get_pages analogue that would work for ITER_KVEC, which is exact same problem right back.