Received: by 10.223.176.5 with SMTP id f5csp518045wra; Wed, 7 Feb 2018 03:11:14 -0800 (PST) X-Google-Smtp-Source: AH8x227GMFBWe/zZfwx3hVzKBDNaTD50M1LKcn/RJAJGIh8N8c7oT20ZT4Vo9YTNTe6xmUxJ4ZqS X-Received: by 10.98.46.2 with SMTP id u2mr5717707pfu.30.1518001874356; Wed, 07 Feb 2018 03:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518001874; cv=none; d=google.com; s=arc-20160816; b=ah2hoypck4UFYB98tVRGgWhvbUGyl3p0BEX0IA6TwoCujSBES4BrSNsk51NrFitBHf ju+1LcOm+RbKyCjK9gS+VSFAY5VRIdv4extGZCKViLTf8kyDBv74u3LemF40k1CVh/+E KxbToYxOR8hIYcZbIIGpcUddsekwj1vLn8rjmC+GphZeiPMqeU93a7Qv/E59Noa9GS0i E0AcCXNAapeqi6NbkS+RXzqHEAxZ+MD8paHNc9as5egblYfNKqfMnthyEArrVB3j1ao1 tPvQ+zZm3hThb/BAtj3WRiFO0R7rGVdsIMfzbjhVIIHe95P8yAfpfnogxiaYr0F6Ytfw owzQ== 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:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Kra14BwK71uTQenJexuMaDJD3cnGsJKIVaohljXItrI=; b=vj4xqm/PNllND5OeO3DqofclVE3FTwZlSDi9s9DLlTCYfIVSZLfkHIOzDeb8QWIW0u NMF1xg/eqVVW1DBjb3imqcQNLqaCIct1aU0amDemXr6NLUP32khtrKzd1A7dS6D/RQ04 7ThcFTLfPncTY2fqQtFZCOq+eMFCiw5Of98yIUxVVzFzEiZ0s14a6mx/Kzy11uq0aZo3 IQMNQyoNUqq27ITq+Kv1u5OrqRPWrG6n8T20zkiqJzdGdbiclcp78YtVgCfLpCi8xk2c QFWSFY0JtzJmSPcteGqYINodI6V2WRalrGO4dSKsL0XzZR5+XDEKqfGJkLPLBCIr8JKA SDCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=NtPmDyvO; 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 u3si814903pgb.260.2018.02.07.03.10.59; Wed, 07 Feb 2018 03:11:14 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=NtPmDyvO; 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 S1753795AbeBGLKU (ORCPT + 99 others); Wed, 7 Feb 2018 06:10:20 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:53692 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753720AbeBGLKT (ORCPT ); Wed, 7 Feb 2018 06:10:19 -0500 Received: by mail-wm0-f41.google.com with SMTP id t74so2407025wme.3 for ; Wed, 07 Feb 2018 03:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Kra14BwK71uTQenJexuMaDJD3cnGsJKIVaohljXItrI=; b=NtPmDyvOLKFScxezSk98LnAyw+kY3CRDmNtxNEYgoGIpI7yFNU/3r5bEl8MfNctUkn D4OLc96wLTIwbizTYRa3BYgHlmaBU/RvQjyqb6uR0+Dzi2kRrFJZHbAtfpj2DvLZuQB4 EKvs0aBIWfxRRdMaKH8qsTYNhf/GFOCIPoFPsizW0igcFo8mtUc7yogs4HJ5x/sDm/yb AJtl4gQTuLZQ193U/+PLa5KUvJSMxVd09We1ttlIPkNZDtY1/1l2ICA38I6qHJqsRNNa DL3pGs0dU0eomYOALcJEgqxbv1O2eAffqPsYAjV9lInHfdPI8qjjHHiG0pHCniIk1S5D FvGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Kra14BwK71uTQenJexuMaDJD3cnGsJKIVaohljXItrI=; b=Hd6HKoWQD2WjbxQm4YEoJjz6PQsNQQYLFrrA6yimlk9a+IWsCmEkHr+CC5273iPLwU W1Rm4WZpphrl6VpSwRbvhqQ7xNdD/UTYhfkHP2pALB4Q5TpiAO3LPPk8TApPVKFZeWUQ 7QGPXtKNQqNtxpJNWusRWjYq65zTmn+ZgghZ2c6QD/UbFq3wVJ0vA0ogGjLGgTcQs+CH VpqdbDCXw7rqscBkUDHCUJZy0tCASsrXk/CrspIeyepqfpvwILN1teQfOekSkTAJu/ny Z/O2FlAyMgKLaWxo+CVGuBqHxeC51yZBNJEQYtTrr5VLI4TQUXvwmrUOvm9iIln7E3oS kmSw== X-Gm-Message-State: APf1xPCliQdwJhjXTb2vRzzgT0GQO/NQ+QumAEEQf7NlHbdBaULMKye9 bAafXPc6MdNuyMVibW0lN/2jWg== X-Received: by 10.80.208.2 with SMTP id j2mr7771562edf.134.1518001818443; Wed, 07 Feb 2018 03:10:18 -0800 (PST) Received: from node.shutemov.name ([178.121.192.223]) by smtp.gmail.com with ESMTPSA id o47sm1136123edc.10.2018.02.07.03.10.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 03:10:17 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id C7EF8648D520; Wed, 7 Feb 2018 14:10:16 +0300 (+03) Date: Wed, 7 Feb 2018 14:10:16 +0300 From: "Kirill A. Shutemov" To: Kai Huang Cc: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky , Dave Hansen , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] x86/tme: Detect if TME and MKTME is activated by BIOS Message-ID: <20180207111016.st365i56w67gmjbj@node.shutemov.name> References: <20180131091509.26531-1-kirill.shutemov@linux.intel.com> <20180131091509.26531-3-kirill.shutemov@linux.intel.com> <1517978050.23889.23.camel@linux.intel.com> <20180207081627.eomxuyqw74eew756@node.shutemov.name> <1518001244.23889.32.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518001244.23889.32.camel@linux.intel.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 12:00:44AM +1300, Kai Huang wrote: > > Suggestions? > > I would go with 'tme_cryto_alg', and 'mktme_supported_crypto_algs' for > the two variables, and TME_CRYPTO_ALG(x), TME_CRYPTO_ALG_AES_XTS_128, > MKTME_SUPPORTED_CRYPTO_ALGS(x), and MKTME_CRYPTO_ALG_AES_XTS_128 for > the macros, but it's up to you and other guys. I'll leave it as is for now. > Btw I do think AES_XTS should be AES_XTS_128, even you go with current > names, as AES cipher can also take 256-bit key. Good point. -- Kirill A. Shutemov