Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3220334imu; Sat, 24 Nov 2018 00:24:50 -0800 (PST) X-Google-Smtp-Source: AJdET5dvoKTkmT4gDFKmGlKMz/c0/2EljhY3cNSYoeiLcDnW3rIIGbpwcaxo9UFdTddyHUJlnYwa X-Received: by 2002:a63:e247:: with SMTP id y7mr16412029pgj.84.1543047890371; Sat, 24 Nov 2018 00:24:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047890; cv=none; d=google.com; s=arc-20160816; b=Uz+02Jf1mRsyxP92XVcGkmknbFBwOtzLc0A3JP8ogshv4fMM0U2v+KedK6LOXcvzSk EbIJitQ6/TpJJkeiqSiANSDbJgiqQQ0t95c9P8FG6lZi/1CIuGEMHCqpmuxhsjFZ7dyt Tyl2Pa9BGANde1oCUXaTfmlz2Aifoi7ixTQyv8USMKd24HfSsCYfw7Y5erHKCSYWbigL /ocNtItXhtJalBUNxeUeehy6e+kVIND0cq00grM8b1im+edLRwu9816wPs/SJp/GyWU1 yFaYJu+6DXHC2oFeGaFHzJt6FMbed6qY3pdl2vMQD2UwZ2CPtwPtyBnPpeVctBPNkEKw h6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=CR8V32Cgonm9Ey0ySuUKzuY6lYpBE4/CtjqisOjKB6k=; b=vs3KJSU6DtXScGXYRFU1Q7LwIbKhioTZfUdjKhct5o36eaMLDR+SujboQ8WeV4KBex Dlcl85gE3PXGAYvLbtoDc8o1ZnXaz1CvmwW3cnaKLyBoC9qjuCRPOT1XtI85J8OtA+OV XDXcPUiNskfIzL07c0pGkpGYfjp64xS79ACFh/eJnd2iM1d5dLDKAQLZoOE6JXslb923 TU75QWx+GF1bYMavS7ga0m2xidhR3E760REMl+sFCcFb08vlmGynMihTjZBzAg699ahP cv10FBPChqU/Zz5wKhGKn09oV4zll3yP4e4Y252zHoEa5lM5g/qQEtmy6VVIC62eCZZ3 BpZA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si25161397pfg.185.2018.11.24.00.24.36; Sat, 24 Nov 2018 00:24:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409382AbeKWVXk (ORCPT + 99 others); Fri, 23 Nov 2018 16:23:40 -0500 Received: from wind.enjellic.com ([76.10.64.91]:34591 "EHLO wind.enjellic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394186AbeKWVXk (ORCPT ); Fri, 23 Nov 2018 16:23:40 -0500 Received: from wind.enjellic.com (localhost [127.0.0.1]) by wind.enjellic.com (8.14.3/8.14.3) with ESMTP id wANAdNSt014028; Fri, 23 Nov 2018 04:39:24 -0600 Received: (from greg@localhost) by wind.enjellic.com (8.14.3/8.14.3/Submit) id wANAdNqg014027; Fri, 23 Nov 2018 04:39:23 -0600 Date: Fri, 23 Nov 2018 04:39:23 -0600 From: "Dr. Greg" To: Andy Lutomirski Cc: Jarkko Sakkinen , X86 ML , Platform Driver , linux-sgx@vger.kernel.org, Dave Hansen , "Christopherson, Sean J" , nhorman@redhat.com, npmccallum@redhat.com, "Ayoun, Serge" , shay.katz-zamir@intel.com, haitao.huang@linux.intel.com, Andy Shevchenko , Thomas Gleixner , "Svahn, Kai" , mark.shanahan@intel.com, Suresh Siddha , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Darren Hart , Andy Shevchenko , LKML Subject: Re: [PATCH v17 18/23] platform/x86: Intel SGX driver Message-ID: <20181123103923.GA13851@wind.enjellic.com> Reply-To: "Dr. Greg" References: <20181116010412.23967-1-jarkko.sakkinen@linux.intel.com> <20181116010412.23967-19-jarkko.sakkinen@linux.intel.com> <20181119161917.GF13298@linux.intel.com> <20181120120442.GA22172@linux.intel.com> <20181122111253.GA31150@wind.enjellic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.3 (wind.enjellic.com [0.0.0.0]); Fri, 23 Nov 2018 04:39:24 -0600 (CST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 12:56:23PM -0800, Andy Lutomirski wrote: Good morning to everyone. > On Thu, Nov 22, 2018 at 3:12 AM Dr. Greg wrote: > > In addition, we are not confident > > the driver will be useful to anything other then server class hardware > > and will be incapable of supporting virtually all of the existing SGX > > hardware in the field. > I forgot to mention: I have a plain old retail Intel Celeron (I > think -- it's not in front of me right now) that has Flex LC. I > suspect that, going forward, all new Intel CPUs will support Flex > LC. I really wish that Intel would document all of the detailed > capabilities of all their CPUs somewhere. Interesting, that contradicts the read we had gotten on FLC. The only specific CPU's that we know of that are acknowledged to have FLC are the XEON E series in support of the PCE/ECDSA attestation for data-center use of SGX. I'm assuming this is a really new system? If so that matches our experience with respect to the fact that SGX2/EDMM capable systems slipped out quietly in early generation NUC SOC's. Your sentinments are correct with respect to getting solid guidance on hardware, it is a significant issue, particularly with respect to SGX. > There has been some talk of how the driver could support old CPUs. > It would involve a rather different LE being signed by Intel, but it > should be more or less transparent to user code if it happens. I will reply to the LE and driver capability issues in my response to your earlier e-mail so the thread does not diverge. Jarkko, when this driver lands it will set the SGX ABI in stone for Linux. It would be very, very helpful to the development community if there was some official guidance from Intel on whether or not FLC will be a universal feature on all hardware and the date that is going to happen or has happened. If this turns out to be an OEM selectable issue via firmware customizations, things will be even more problematic. As things stand now, the proposed mainline SGX driver is going to be useless for a lot of hardware that is out in the field. Linux has always had the reputation for supporting legacy hardware so this directly contravenes that principal and needlessly so. Dr. Greg As always, Dr. Greg Wettstein, Ph.D, Worker IDfusion, LLC 4206 N. 19th Ave. Implementing measured information privacy Fargo, ND 58102 and integrity architectures. PH: 701-281-1686 FAX: 701-281-3949 EMAIL: gw@idfusion.org ------------------------------------------------------------------------------ "Simplicity is prerequisite for reliability." -- Edsger W. Dijkstra