Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp579574ybk; Wed, 20 May 2020 07:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqRbQRR767J38YYzkeGIh6G3+T124DOlsU3NEod4vVeH313n/a3c7udNvQ7WM1VBMmvDmP X-Received: by 2002:a05:6402:1c94:: with SMTP id cy20mr3544442edb.270.1589983384980; Wed, 20 May 2020 07:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589983384; cv=none; d=google.com; s=arc-20160816; b=WCmnkjbzIrs1mprRTRRG+4V/DyBxUh9yjXXxykI8PlSWWvgoE+XblZHy6yVMXKJRHX MPwPZEDTo6knxtJChhCsgzKhti+nCwVQRQ0KwlKHbGSPyh4hs12CosgfAMc8KMhUcwZf oKDy26YzqCCPP1MvyDzer0h/3WmvFAXihMmXlzHk3JFc0aV5HjP9xH3UWns+faSUnvMG h4oYmbLHzu7YXObjW7Fyn3AUdYtufndwHLppazVQ7OCacew/nIKlZctAP8y+ph74dRsd l5eiB2MY42rDDtCYOv7XDYwhQLKF1d+3+DvrF5DAqyRqfbYMw899v+Ef8sMSXZ4TsQ2u pQew== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=4dcMGi5qmtjyH8Gj5MrURxql+EU3+fWNf6O+RkhHvrU=; b=K8vE9UUI76PGN1SBnfEngvHFeM9ovAVTlH6LDNydBpum3wjWfmIfP59hZ7jWEgAXSZ y7nfVFALiR5hlqsB5V/bCoqExitsu3uznN68yJ0qwdPsJARP7zAQAIWUsgz3vOFWwrBW LqQX20clSaR/stNRB963kw7BUuuRaM50BTGXSXYREJGcNQ3M5NjGrmZI32RFoMBpQWhk CUPlDQ03+oSxcpP33O1O4J6CxZY6HgUveIDbtY3YtxCi3f07+GfnIsa22gUCpaKhbrRE NP5JkGp3czjOEnUh4F9Tf/y3O6FmtSJhgSJClg7pXdCZe0JY8F9gQJm3/NM0D/sjIlI5 Ybbw== 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 l6si1481169edr.243.2020.05.20.07.02.36; Wed, 20 May 2020 07:03:04 -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 S1726576AbgETOA4 (ORCPT + 99 others); Wed, 20 May 2020 10:00:56 -0400 Received: from mga05.intel.com ([192.55.52.43]:42179 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgETOAz (ORCPT ); Wed, 20 May 2020 10:00:55 -0400 IronPort-SDR: qzy7/cdMpUZ8dyCUFDUz2huK80ibYlYixSSNuwN1rRqgrLVTBhA5rFgQI8Fq8CX8LTK28RflbU XTmEe/AJY95g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 07:00:54 -0700 IronPort-SDR: YxqroxTKwIzxY6ucUpAnsBTI86ASQQd6VG2HGha0NGmWLHK5WVOwbOqYDto+t9MKbXk4o3xVNm sBH+BSYuEiVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,414,1583222400"; d="scan'208";a="268275311" Received: from ttluu1x-mobl.ger.corp.intel.com (HELO localhost) ([10.252.38.239]) by orsmga006.jf.intel.com with ESMTP; 20 May 2020 07:00:45 -0700 Date: Wed, 20 May 2020 17:00:44 +0300 From: Jarkko Sakkinen To: Borislav Petkov 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, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, Jethro Beekman Subject: Re: [PATCH v30 01/20] x86/cpufeatures: x86/msr: Add Intel SGX hardware bits Message-ID: <20200520140044.GA34750@linux.intel.com> References: <20200515004410.723949-1-jarkko.sakkinen@linux.intel.com> <20200515004410.723949-2-jarkko.sakkinen@linux.intel.com> <20200520121604.GF1457@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520121604.GF1457@zn.tnic> 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 Wed, May 20, 2020 at 02:16:21PM +0200, Borislav Petkov wrote: > On Fri, May 15, 2020 at 03:43:51AM +0300, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add X86_FEATURE_SGX from CPUID.(EAX=7, ECX=1), which informs whether the > > CPU has SGX. > > > > Add X86_FEATURE_SGX1 and X86_FEATURE_SGX2 from CPUID.(EAX=12H, ECX=0), > > which describe the level of SGX support available [1]. > > > > Remap CPUID.(EAX=12H, ECX=0) bits to the Linux fake CPUID 8 in order to > > conserve some space. Keep the bit positions intact because KVM requires > > this. Reserve bits 0-7 for SGX in order to maintain this invariant also > > when new SGX specific feature bits get added. > > That paragraph needs dropping now. I dropped it (in my tree). > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette /Jarkko