Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1043765rwi; Mon, 10 Oct 2022 10:23:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wIb0nceWkpAR1lJbYpmU2pRpIEJESxAwAfP1bE19cl9uunwgj6KHgQuCjxSNPI0ZItaGM X-Received: by 2002:a17:902:e545:b0:182:6c84:7fc0 with SMTP id n5-20020a170902e54500b001826c847fc0mr6338902plf.144.1665422581132; Mon, 10 Oct 2022 10:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665422581; cv=none; d=google.com; s=arc-20160816; b=VgOOEmWF7PdP7+n4e2rq+DLRn59FAYOzI8weiWt5Qjd6dY1oXt8+3QWyjubQDv7SZK qyWDfA/GaxuS0Qz7dVX1ycAlt0Z7yJCn4MhbEwbS+PQp6peQrUbdYgaOTXgNpNsN7+uv KfwnNKYJ7F7fmg4PPAbN5oWibOJlzLU+TxdRSQgdvSIHmVNmbglD98JzBP9CnQIYu3Gw +q8xwB67CfaUJ+2tAWfUf5wKgoV97ygl2R1wWv7e+tFkLoJZioSAeXMThGOXsmELAC95 AepBlQC1ZYGghmIDrK1s8qh2iGN9qyXa2L5TFG1cw2aMeZ/YZvAy4Tb1LHfVBV6FdQTi B3DA== 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=PkxAA/9uVoaYu8Fb5sQePdbAwJCyyv1sqzkKH/uTXFY=; b=n2dCn8XxNfDd4mkGm5AXxl4WW8negrHRXYOx62n13dTW2rdClZca6lg5x4n18czekL ZN64NxwaBu2uTg6ki6PLy4yrvK/3+ipBv4idtjknTI7Qq2w9cF0DcnagnVUjM90pRpjO tonAn7/gF8c85j0ONdKJDAujrYdOIezjLfRJuEw3o6AKqUClhCzkinN4bCvUaUcXZ0lj zu8xNPwYw4qDhSSN76E7Jwu+xA4GFHnwmiok/72cL+/GizoInLf+LG8vMIuakIRGFbI5 91eCjoPG+V7T1D6EVZmaN54LogrkmO+MhdkfW8dkXVC4TDEGz1qTPichhsZzmm8VD+oP w/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=BBkIy6D9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a056a00158f00b0053e757130c3si1782727pfk.378.2022.10.10.10.22.44; Mon, 10 Oct 2022 10:23:01 -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-foundation.org header.s=google header.b=BBkIy6D9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbiJJRUi (ORCPT + 99 others); Mon, 10 Oct 2022 13:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiJJRUg (ORCPT ); Mon, 10 Oct 2022 13:20:36 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF72424BED for ; Mon, 10 Oct 2022 10:20:35 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1322d768ba7so13180398fac.5 for ; Mon, 10 Oct 2022 10:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PkxAA/9uVoaYu8Fb5sQePdbAwJCyyv1sqzkKH/uTXFY=; b=BBkIy6D9LtVndEDq+Q3u4CWEzY2rLnypV7QWR5cA37JnOw3xlsUOmtEwLZdF+ckVQQ fq8/7esW895XTWVsuf7T8y/EHIBtxCz4BFFca+qYCw+oNLV8UY6QDQfhXpWCg3HpIpO/ D9a1Q0kzkDXaGTf+g18WoTuftFtQUTTlseKbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PkxAA/9uVoaYu8Fb5sQePdbAwJCyyv1sqzkKH/uTXFY=; b=hG28hLk9P9owe029/YdFccAaUz5lyUqpW7Jqibk1o0hZqICwdL3G+furuaCr8ffQZh ptEaI69rC1lX92+9YRoVIBCuyIyCeuBli0i+1dzv37qg6BKNXi9dHvnUXhzgxGa9zQJM nDYMQDniioF1YAeE4mk1EEzW6Zi/SQMbKqZJxFm9LwZbvs8p0pd8iVKVcoDdu6nlurjQ 7fO7j4HYV37WWEUUkyvAbRpejYVJq6czZOJybPuOE/wvgIgAdJGKPUhiWmJrKnNiWsrb Q0gHx20gmOQ4uP2MEAVmlIddwMBNPcf9+VTjB9C14dYWxMncoKluUDB38YOG4RiFEDem uo6g== X-Gm-Message-State: ACrzQf2OPAOGQd9LN4vtwhzFPTNn9JX24Es3n9QZJSKTrisZW8SFU1Y5 gAFbLLGrnFRdeqcdmFANGdNzALvfZAAwtw== X-Received: by 2002:a05:6870:82a4:b0:132:eb87:37 with SMTP id q36-20020a05687082a400b00132eb870037mr13970181oae.13.1665422434297; Mon, 10 Oct 2022 10:20:34 -0700 (PDT) Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com. [209.85.160.50]) by smtp.gmail.com with ESMTPSA id bd18-20020a056870d79200b0011f400edb17sm5525913oab.4.2022.10.10.10.20.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 10:20:32 -0700 (PDT) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-136b5dd6655so1330170fac.3 for ; Mon, 10 Oct 2022 10:20:32 -0700 (PDT) X-Received: by 2002:a05:6870:c888:b0:12c:7f3b:d67d with SMTP id er8-20020a056870c88800b0012c7f3bd67dmr10619390oab.229.1665422431775; Mon, 10 Oct 2022 10:20:31 -0700 (PDT) MIME-Version: 1.0 References: <20221002002326.946620-1-ira.weiny@intel.com> <20221002002326.946620-3-ira.weiny@intel.com> <20221010074234.GA20788@lst.de> In-Reply-To: <20221010074234.GA20788@lst.de> From: Linus Torvalds Date: Mon, 10 Oct 2022 10:20:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] tee: Remove vmalloc page support To: Christoph Hellwig Cc: Sumit Garg , =?UTF-8?B?UGhpbCBDaGFuZyAo5by15LiW5YuzKQ==?= , "ira.weiny@intel.com" , Jens Wiklander , Andrew Morton , Al Viro , "Fabio M. De Francesco" , "op-tee@lists.trustedfirmware.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 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. Linus