Received: by 10.223.176.5 with SMTP id f5csp995955wra; Wed, 7 Feb 2018 10:50:38 -0800 (PST) X-Google-Smtp-Source: AH8x227vAvrUtLXXUcResfjCcwGdY8w2Hg8hvz00F+N++JYQdpxJ9Jk40DNT/Jc6VDhOUYjIDyf1 X-Received: by 10.98.223.80 with SMTP id u77mr7019146pfg.186.1518029437957; Wed, 07 Feb 2018 10:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518029437; cv=none; d=google.com; s=arc-20160816; b=hEIfAsa8KcQI+O5yaQWNk7q5HEOyOUfmIHjcm4ZyIx65J3050AYL7wbpLuu+YZsv05 P/9nL3VkF+3L/3yZJCI8RlZX3mGb4RoiNqQpynBqojhXMStHKskBZ1Wq/HwJypVqHXgV tsAeCCdPOIw86kTSagfK62Hgc2U+OTux8TOJhTeJE9N1x0hpQh8W87m4/lYee4FO0S8s kNz2fYi49GogG3Q0nTWovOo4NqPvJi8MTngbLFF3VMVN6WAw4kLojec7mwgZuKESuNh0 FukMhSvuRaVOME9glSXSjtTk+M+/C9Cxr0oIE0/8SN7M0TTpsNa/eXvxResF+lylzeIL OTug== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=qhEZpI0pvT6iQMqGDI+BRrc9hlmdmpNLwu+DdeDSha8=; b=W0uhmiSNtA6HuPV/VFsPGtTWUfi3y9ArHlFezX1yakv9dokiDPAZ+nnc0tnC5JvAcw nA5R8EfaExjnoJ6XCk8tvAFLpz7lNRCZ8qHxbpp0c5netZXUKv222F2XAmMj8udVGoYS QbsA1W+93kQki7jL/lPXsD4jcWibRZ0/4Zt/sTLaDDShxINihWkqQgAZ/tqygHY8IDWR PIlhbPlgrkb+NGFX5jZC6JFDjoSE6deEjZjYPGxpoqD+WygohJdzSA/1/iiOvRzTQwL0 M+HOZ1XbuEdsyCbMvm/HbNOnBqmIMsMIH//tOxABt/L/RJUip/gzqXwvbXhhm30h8E17 HO/Q== 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 34-v6si286641plz.22.2018.02.07.10.50.23; Wed, 07 Feb 2018 10:50: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932104AbeBGSto (ORCPT + 99 others); Wed, 7 Feb 2018 13:49:44 -0500 Received: from mga02.intel.com ([134.134.136.20]:31908 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754048AbeBGStl (ORCPT ); Wed, 7 Feb 2018 13:49:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2018 10:49:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,473,1511856000"; d="scan'208";a="16387235" Received: from ray.jf.intel.com (HELO [10.7.201.133]) ([10.7.201.133]) by orsmga008.jf.intel.com with ESMTP; 07 Feb 2018 10:49:41 -0800 Subject: Re: [PATCHv2 0/5] x86: Enumerate TME and PCONFIG, add MKTME_KEY_PROG helper To: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" References: <20180207125946.5906-1-kirill.shutemov@linux.intel.com> Cc: Tom Lendacky , Kai Huang , linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: <0f1e32ce-81a5-bfc8-d830-a97df5bbee8a@intel.com> Date: Wed, 7 Feb 2018 10:49:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180207125946.5906-1-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/07/2018 04:59 AM, Kirill A. Shutemov wrote: > The patchset does some ground work for MKTME enabling: > - Adds two new cpufeatures: TME and PCONFIG; > - Detects if BIOS enabled TME and MKTME; > - Enumerates what PCONFIG targets are supported; > - Provides helper to program encryption keys into CPU; > > As part of TME enumeration we check of how many bits from physical address > are claimed for encryption key ID. This may be critical as we or guest VM > must not use these bits for physical address. For this kind of stuff, I'd really appreciate if you included some high-level descriptions. I'd assume that a reviewer has no idea what PCONFIG or MKTME is. It would also be really nice to say which hardware will implement this. Is it in particular CPUs today, for instance?