From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5A8FC433F5 for ; Mon, 10 Oct 2022 17:58:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbiJJR6F (ORCPT ); Mon, 10 Oct 2022 13:58:05 -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 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.