Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3581571imm; Mon, 25 Jun 2018 00:40:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKq5gQrXfozlJpzVjnkViEjBGXpU7DLpTeXzIDxz8O/+rsxt0LJVW0hyHIRe3AIQFSyFSzz X-Received: by 2002:a17:902:b410:: with SMTP id x16-v6mr11201759plr.324.1529912431260; Mon, 25 Jun 2018 00:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529912431; cv=none; d=google.com; s=arc-20160816; b=NK0pxFDn7Y37wmZfE7aqzhP+x1MxhYIZFjoKXIC/qyFpnhGHrAwbhVsfrVwGI4iPG9 MN7Tzuip7oiiX+CH5dLTWhFi2xkXgXEQlWX/2Tdb4YR8hzwWAw/dpub0giHNtE3yo4bf cuAK4rofs6/7ri/NLLd0IRjs9wdZfgy8R5ZYEhH6btaulNe37xUPBe1Exh2y9b5b6TEA cw+VfN/d5Irz1mK2dBNwjCMCQ99FppjprRjEftYo5If5usSpNEyEJDBKgR165BiqZCWi v36fs1sel5kOWAjoBfWc+4wFf9oa2x1/x1l50T70lf22Xe3hrI74+iuM0Xn4TGWGhboC YIVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=9jDsnk/NubtD9JNdHv4QZlqhVdvG43AWMg7mvvIgSbI=; b=LS9zzMvE1D35y5FHyGoox25448bcWGlJlbfuFIok2DusdEZY6JSbedJN/PkLj/3SHL FfK7WuVlJ6IovE5qLRfGOZu/AtZ+Viyctp7EHYCLASMGl6Va3Ju2xn4VA+vD9jPjExoS 3DRq4TSJLgPm8EUEz/gLV5KSFwjjii4Ujr1Qu2xxX1gd8Bo86hDFSfHaF828YGWP6EC1 H0WrJIq5im2khAe0i8Ua21c13FQ4QPYcFa6ZrNKQVxDo5os6k94kXrpcItCCOU2tOote 5IyHachLrVwh5sZbfSXy1sXSB41gqhv+yEmZiH1biNpCi1Qyjx9HRtluX1mp8JKEMcA8 Yw+w== 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 j10-v6si12530414pff.269.2018.06.25.00.40.16; Mon, 25 Jun 2018 00:40:31 -0700 (PDT) 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 S1752462AbeFYHjh (ORCPT + 99 others); Mon, 25 Jun 2018 03:39:37 -0400 Received: from mga18.intel.com ([134.134.136.126]:43884 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbeFYHjf (ORCPT ); Mon, 25 Jun 2018 03:39:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 00:39:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,269,1526367600"; d="scan'208";a="51997656" Received: from jsakkine-mobl1.tm.intel.com (HELO jsakkine-mobl1) ([10.237.50.42]) by orsmga008.jf.intel.com with ESMTP; 25 Jun 2018 00:39:29 -0700 Message-ID: Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 07/13] x86, sgx: detect Intel SGX From: Jarkko Sakkinen To: Andy Lutomirski , Dave Hansen Cc: X86 ML , Platform Driver , Andi Kleen , Greg KH , "Rafael J. Wysocki" , npmccallum@redhat.com, LKML , Ingo Molnar , intel-sgx-kernel-dev@lists.01.org, "H. Peter Anvin" , Vikas Shivappa , Thomas Gleixner , "Kirill A. Shutemov" Date: Mon, 25 Jun 2018 10:39:28 +0300 In-Reply-To: References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-8-jarkko.sakkinen@linux.intel.com> <4fc3b6b0-6e4b-3d5f-4d54-2bf7539c7a17@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-06-18 at 14:36 -0700, Andy Lutomirski wrote: > SGX: disabled by firmware > SGX: disabled because CPU does not support flexible launch control > SGX: disabled because firmware does not support flexible launch control > SGX: disabled because the phase of the moon is wrong > SGX: enabled; using SGX1 > SGX: enabled, using SGX2 Makes sense for trouble-shooting (and in that case the check for SGX_ENABLE flag is more appropriate). /Jarkko