Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2620184ybv; Fri, 14 Feb 2020 23:35:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxz36FwyStqQtR87+5AzMxxj/Pyz8cpz8SXRCWSNyx0ryqSV0A7VmKsK/Sdr3f7rA4fvAkr X-Received: by 2002:a54:468b:: with SMTP id k11mr4210206oic.134.1581752148988; Fri, 14 Feb 2020 23:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581752148; cv=none; d=google.com; s=arc-20160816; b=dQEX57Qf6DIbeXMQEd4eGBkT9doKFL16mZTebPEflQ/F2NC++T6gVgU4cvpx21AS5f 1EenVMPke513mglxPp470AnSWb4DwsDlqCQCPrbmZ2+gN+gD2xR3xiAmdsnkHQtsnARh Poygdkf7bu4TI20STVx/PuXyql12I35KP1y7UbT6oczozt1VVP/j1XA7ZVeXEp6/SY15 mA4Xdp/6zpeRpbvhIbOclu4bQdvuWGRJXmDJcX7MJosUJX8JYVZt1kTrY9vYfcYHougd LZiJvW9Ya+UboadV+JdskVoOCVnFpahRQKaVXhGw9WkRfXXIGWoKxDl0gTeOj/EtNLdO 8NTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MmDndOOV3iNBoYjeCnE7CbvhjKB0Y4AU36KUoiSKNgw=; b=0oXT30uDiuWQsZ43aLEf78NZ8HGbn82oLK/cYcZaYuTGv8L75Mhlif+WIknwyPpvSQ +LlakHhhcOdjqb9J53TJrz2N9OhXg0knliPDC7B/WvmPydN2ZI4kgBaXiV7JuGtQJCdZ XRLAAFfZApbLHJNQq1gskT5aqSl7IuxNvgaPpjzW+Kf3Pod88a0PrsdBKF7oAdbJbaRS XXgOb7a+WRFgoczne1DhmUg1jDxw1Z7WKOCwcg3qh5OJNUWv3EMBrrGh/XmRd8ELJp+P 8JOlgXN/XxM7Lhfqh1XWkSC/7kmdR5aoXr0/Mg0ns90VeBxM6/k5C3MkHQrcI8DyP3Q/ MGDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l8si3795975oii.249.2020.02.14.23.35.36; Fri, 14 Feb 2020 23:35:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1725914AbgBOHf3 (ORCPT + 99 others); Sat, 15 Feb 2020 02:35:29 -0500 Received: from mga07.intel.com ([134.134.136.100]:10016 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbgBOHf3 (ORCPT ); Sat, 15 Feb 2020 02:35:29 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2020 23:35:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,443,1574150400"; d="scan'208";a="227857382" Received: from kfinglet-mobl.ger.corp.intel.com (HELO localhost) ([10.252.22.140]) by orsmga008.jf.intel.com with ESMTP; 14 Feb 2020 23:35:18 -0800 Date: Sat, 15 Feb 2020 09:35:19 +0200 From: Jarkko Sakkinen To: Jethro Beekman Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, haitao.huang@intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, bp@alien8.de, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, linux-security-module@vger.kernel.org, Suresh Siddha , Haitao Huang Subject: Re: [PATCH v26 10/22] x86/sgx: Linux Enclave Driver Message-ID: <20200215073519.GE9958@linux.intel.com> References: <20200209212609.7928-1-jarkko.sakkinen@linux.intel.com> <20200209212609.7928-11-jarkko.sakkinen@linux.intel.com> <20200215073234.GD9958@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200215073234.GD9958@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 15, 2020 at 09:32:34AM +0200, Jarkko Sakkinen wrote: > On Thu, Feb 13, 2020 at 02:59:52PM +0100, Jethro Beekman wrote: > > Besides only partially measuring a page, there are some other fringe > > cases that are technically possible, although I haven't seen any > > toolchains that do that. These include not interleaving EADD and > > EEXTEND, not using logical ordering for the EEXTENDs, and call EEXTEND > > multiple times on the same chunk. Maximum interoperability would > > require supporting any EADD/EEXTEND sequence. > > The reason why EEXTEND deals with chunks is nothing to do with the > granularity but just to amortize the algorithm. I did ask about this > and this is the answer that I got. I mean asked from people who have been involed in the development of this CPU feature. /Jarkko