Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp98951pxb; Mon, 7 Feb 2022 07:11:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5nBnOydVmiSk7xFogR/lRMSEJQP4D9zMeTfJ0Mkf/AzpLMLhjyIBLA0kPoY63GMH3zclx X-Received: by 2002:a17:90a:c702:: with SMTP id o2mr65355pjt.8.1644246689083; Mon, 07 Feb 2022 07:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644246689; cv=none; d=google.com; s=arc-20160816; b=T0VS85/sVecY8xd+wrTOWnC2/aJHhMH6pG3Ox5pj25AGbgD/lXys5tv0TNbIlBX/o9 jmMle4BknxrbVzfBnTz/lkIgEp0I8zO3ZHdis+9V6dvbZzZtCG8aAGnFk+pe93lQexsR iphynrU+P7lLrkUAELsFAIgOaObQJw1F2PwEa6XnMZERYnAiK/WAa2c66cPt/XyPJh0k w9wb0UNEKbaaZBsNgufZiap4QB64pFzocVUkOu45fRE6lix4oyhPd0hiaB9N/z/YN01q rmeeVqcSOraWsnGtcOwIhLDIX7E+MIKVQ7nVdlbcETyqAS/DsEIHm14cU65n3xECnhWp s4Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cQ4SzNKx3zUshpOS52iKeUUnDT1JTg4DzobvVWJLUl4=; b=qR0Jy44rlJEofcF9jiKdG4SFBjiGhX4onFKnQSS/RRCaCfwMSH7VzGOrAs1ze4a5Qb 3Ttv+0imwYU2FvPK1HNWECDV0+g/aeQXvzIkxDVC00sEYJj86X5DskFIwIOyM4rLcUYX RrbS3DKUg/Sf54NiCyCLHw7TJjc5RFZJRbH1qumWGm7CYOof7PrZ06FnhpsPB+NSdTQv FzDcNHs+JpWRfjF8ZoiB2VX5sFRpnhT2FfKswGa2tpwL0uBKQ8H152ssJ+3BUNRxH2Hf 9CCbwhoGJktimGhcQnma9fU/sQm+OqndMPd+onEd5XImiJJUuWI/nIkFBWSqb8q2wB/g hAqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hutPCjQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f190si9881934pgc.650.2022.02.07.07.11.16; Mon, 07 Feb 2022 07:11:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hutPCjQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238823AbiBDQ2w (ORCPT + 99 others); Fri, 4 Feb 2022 11:28:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiBDQ2v (ORCPT ); Fri, 4 Feb 2022 11:28:51 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21123C061714; Fri, 4 Feb 2022 08:28:51 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 414B31EC0622; Fri, 4 Feb 2022 17:28:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643992124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=cQ4SzNKx3zUshpOS52iKeUUnDT1JTg4DzobvVWJLUl4=; b=hutPCjQ4kXRa9goBUgZS7qZcxK+wY1MNq8xOaINWMn8PfqNuBtg+Wq1aJ7lcmdo439in0W ncibPfA78mJvETAWDxvaU2zI0O5sBqj0kl0Yf8EETupo55b56ZyDghdqQpwPGvQIZymeka 28y24wFfFi80jdzS2EbP2KOqdzJHuFk= Date: Fri, 4 Feb 2022 17:28:43 +0100 From: Borislav Petkov To: "Limonciello, Mario" Cc: Tom Lendacky , Martin Fernandez , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, ardb@kernel.org, dvhart@infradead.org, andy@infradead.org, gregkh@linuxfoundation.org, rafael@kernel.org, rppt@kernel.org, akpm@linux-foundation.org, daniel.gutson@eclypsium.com, hughsient@gmail.com, alex.bazhaniuk@eclypsium.com, alison.schofield@intel.com, keescook@chromium.org Subject: Re: [PATCH v6 6/6] drivers/node: Show in sysfs node's crypto capabilities Message-ID: References: <20220203164328.203629-1-martin.fernandez@eclypsium.com> <20220203164328.203629-7-martin.fernandez@eclypsium.com> <67d2711b-200c-0894-4ff7-beb3eb304399@amd.com> <5c5ffe29-d3d3-2955-cf78-ad275110f012@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 04, 2022 at 10:23:22AM -0600, Limonciello, Mario wrote: > > > > As there is interest in seeing these capabilities from userspace, it This needs to be explained in a lot more detail: why, what is going to use it, how, etc. We don't do user-visible APIs just because. > As Tom agreed in previous post, Boris is mistaken here. I just double > checked on my side on a workstation that supports SME and comparing > /proc/cpuinfo before and after SME is enabled via mem_encrypt=on. I > confirmed that nothing changed. Then we should clear that "sme" flag if memory encryption is not enabled. Like we do for all other flags. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette