Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp197244pxv; Thu, 8 Jul 2021 18:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxPsM9JC8imMFZ5b58CxD/cCPRXYiFVE6xJxK6VToXWiuIG7jfzOOozRSJ187STcUdgHK7 X-Received: by 2002:a05:6602:3155:: with SMTP id m21mr26880848ioy.145.1625795178486; Thu, 08 Jul 2021 18:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625795178; cv=none; d=google.com; s=arc-20160816; b=dYppBIyToZSGRoSNjSuFn1GMlVQC7IKy723qfEeoyiNGHEE49lpOr024+0/oiOhC8p Qd/7e4gPc6DBrBVu17IJgOHGIw1P8PO//OcV8Bm/uqc9O9suLZkXs5EtnwyGgWqIphj4 0/jlpYO8O32QKOHp8KGBVOoW21RYPBaD0erdzEglMCfb8kzDGiwZDQhABNg+jcWKXXH8 /v4xyU/H5nm/KqFaE+GS7j1oRpuTB2P09s/3BvoYg5cZc+I2WRMWqr0cu2KdV5bAf53R 4IHFfJaJBsUtNQ/tTbnYFw8l7E1k/QENwk875rsPj5+4s6Iz2TTQY72IvlQE2z1ISzcd U7mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JOIscqWL7GQtLHmznbeUJb95CeL8fygDX5xLy4IXg6U=; b=HplfTIIkEVJ2ElJku8T4B7aCD5Vx7aWdSwQrtXXgGwz+WF0y9Ue3NDfkM93ZMuah9E j/TeIHpOsKcf/PJTiM6VmPXSdbodK3WHqSq6ZfYB2PLE0w11BEH8oQjntHi+Ovt4R0o1 4QrDuv2PD5ntiGtuiNKropUlYWsTeoqN6B6B9w3TeeMO4Fwcxyy8F/wvSZwN2XeS6jGb BbGStEjyrjw2rJIp84BjKAdTXPqBY/+Sxk81TGGOjubBusvUqQc8TIFSmxO+cAz/xXZ/ JcSOfZOqkrsYJU2y/qgjfr+lcrqbHm57POAsyMMAb2evocwL0Xl7kVjYACDPaSIYS5Uv rCxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si3786974ioa.74.2021.07.08.18.46.04; Thu, 08 Jul 2021 18:46:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230141AbhGIBq7 (ORCPT + 99 others); Thu, 8 Jul 2021 21:46:59 -0400 Received: from mga04.intel.com ([192.55.52.120]:2871 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhGIBq7 (ORCPT ); Thu, 8 Jul 2021 21:46:59 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10039"; a="207805072" X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="207805072" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 18:44:16 -0700 X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="458104930" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.178.170]) ([10.212.178.170]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 18:44:15 -0700 Subject: Re: [PATCH v2 5/6] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver To: Dan Williams Cc: "Kuppuswamy, Sathyanarayanan" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Hans de Goede , Mark Gross , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , platform-driver-x86@vger.kernel.org, bpf@vger.kernel.org, Netdev References: <20210707204249.3046665-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210707204249.3046665-6-sathyanarayanan.kuppuswamy@linux.intel.com> <24d8fd58-36c1-0e89-4142-28f29e2c434b@linux.intel.com> <4972fc1a-1ffb-2b6d-e764-471210df96a3@linux.intel.com> From: Andi Kleen Message-ID: Date: Thu, 8 Jul 2021 18:44:14 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > One allocation for the life of the driver that can have its direct map > permissions changed rather than an allocation per-file descriptor and > fragmenting the direct map. The vmap() approach discussed in another mail will solve that. -Andi