Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3832074ybf; Tue, 3 Mar 2020 13:46:37 -0800 (PST) X-Google-Smtp-Source: ADFU+vtYQG+LjmtrE64DQo5Ed4wbtb4D19WL7ImNzOQPvM2kEoEMy9LeGXYzL4guUxV3M+K9lXfA X-Received: by 2002:a54:450f:: with SMTP id l15mr461068oil.126.1583271997357; Tue, 03 Mar 2020 13:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583271997; cv=none; d=google.com; s=arc-20160816; b=0+mfTdKSldj7Tyi6kmKrvz+cuQDSudPRi6gIAZTHQzFQjZEOWT8bN36QwybzEkjpO1 jSCJnzhfYK3kIHMzgyB3dhFLMA1XDo7v/54cb+1wsnBd0YIVHnP13m6k0dHrmBZ0JyVO 6YnZjvlK3DdF9kkzOA/9p62bov6GLnEeAaLSDBP9g28xZks8BMDIsLMnfJZkClREpjJF XM486dXxIu/cB7bIE9GxfLbOfWW9whnKlJpyDXcAS4wdT7RWzdHHJLDCAtrId5cTUYjp H1t0Iiqbom8hNNhvL6Y6quTqNX+/e1O2ZzMkPalmIWGR0XclvITK1IIrxKTS9wfyMQ4r vOvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2bVqaDwRtqNiC7HAww5ZmaE1aHAc9Tnv/d+zimhbRMw=; b=oP5IAppvAwSmGIFOUnkyHGodJwUos3EkMske7h1ifhC4dS3gPKftMwU9PaMNJQDHmB Yj3/OHzWpDhdbJQXepdDqKqZZnc75ML3w11gl7V7uWW6MAhFOQ/Dbdu0G0bjJa6hKICt LobD9IUkxlmy2llv4/G1SCyV1pkbZbOaRn4GR0NatMNBnak+EYJEh3wdP2QQ9/il+s1X nunxX+/pNwE3jlvBaCylUWnQQLZTa2QHeWAYkuTnQPrOY9xonNtKLQIXBLY9NolVbmSM QyVMslOVEv5PgV37HogGSUWsymYZhEV/1fL6InAfpaPHqIsWhdeX1/d6DkDSAm6i11NF IZYg== 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 l6si8705671oti.249.2020.03.03.13.46.23; Tue, 03 Mar 2020 13:46:37 -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 S1731121AbgCCUO1 (ORCPT + 99 others); Tue, 3 Mar 2020 15:14:27 -0500 Received: from mga17.intel.com ([192.55.52.151]:60348 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730352AbgCCUO0 (ORCPT ); Tue, 3 Mar 2020 15:14:26 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2020 12:14:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,511,1574150400"; d="scan'208";a="440727556" Received: from fkuchars-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.4.236]) by fmsmga006.fm.intel.com with ESMTP; 03 Mar 2020 12:14:20 -0800 Date: Tue, 3 Mar 2020 22:14:18 +0200 From: Jarkko Sakkinen To: Sean Christopherson Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@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 Subject: Re: [PATCH v27 04/22] x86/sgx: Add SGX microarchitectural data structures Message-ID: <20200303201418.GH5775@linux.intel.com> References: <20200223172559.6912-1-jarkko.sakkinen@linux.intel.com> <20200223172559.6912-5-jarkko.sakkinen@linux.intel.com> <20200303003932.GA27842@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200303003932.GA27842@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 02, 2020 at 04:39:32PM -0800, Sean Christopherson wrote: > On Sun, Feb 23, 2020 at 07:25:41PM +0200, Jarkko Sakkinen wrote: > > Define the SGX microarchitectural data structures used by various SGX > > opcodes. This is not an exhaustive representation of all SGX data > > structures but only those needed by the kernel. > > > > The data structures are described in: > > > > Intel SDM: 37.6 INTEL? SGX DATA STRUCTURES OVERVIEW > > > > Signed-off-by: Jarkko Sakkinen > > --- > > ... > > > +#define SGX_SSA_GPRS_SIZE 182 > > SSA GPRs size is 184. Per table 37.9 in the SDM: > > Field OFFSET (Bytes) Size (Bytes) > > GSBASE 176 8 > > Reported by a third party, I'm just the messenger and not that good at math :-). Thanks! I've fixed this in my tree. /Jarkko