Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp203498imw; Mon, 4 Jul 2022 07:45:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1swFnFaqdw/J+6mUHX76akQ4B0/UcOVvVzrPUvhMqVokBSb7inUpz3sD5yNqtg/hG14tuJd X-Received: by 2002:a17:907:9488:b0:722:e5c8:c647 with SMTP id dm8-20020a170907948800b00722e5c8c647mr28658709ejc.291.1656945924007; Mon, 04 Jul 2022 07:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656945923; cv=none; d=google.com; s=arc-20160816; b=fl4RFhshMK7mo9L8fnJ8pJn/mY762BU89UmvuJNEdBb4m9j2SGCRjLGLlIWxWEU9nf CLGXoBcLNYhh2j15orYkTZZETau4u+0qRCpKn2GvK4rv2XZAv80J/FWExkBPdgmg2IRa ABO9DgDhyWeKvIsoLvsV4heFhfZKXEZwe1PU9RtdeBEXjggwaAgkQf3tk5FjkN1mL33D pbo0dmxUT8eQHKY2sadRKpp7fcb/OS+9yWS/7+sGsylYifwXvWz9jdmuyKZNtOxlAKsG 9AF+G1M1EuUm4h0Svs/FvTUoVqejiDuWqBGsBK0E5F4CHTz59tdwFVtSb4XPPLXyqUp5 qwvQ== 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=SwWaPLOpvEJc6Tqx17kBi83VHJbFiMh++1W8OxoqTKY=; b=DccZ2/R0EVvSH1VTddn+XPva3nL4KA45x8Z+voh/5jR6nmF/YCuybnvD30cVdYIa/Q Lm15a/tXJ3MzQAfq6e0AhZNoqHuYZq0k1PVbqwWFSFSKunhkIbO0X3ksTAY+INennh+q Nl4wKSOIEfcztbaZOcfc5pl1pxFYVVq9IuQP127a5cSrw257VQnncNzk6vpdRUw+Cm4k +KvZZcefNZWCTmhaSHFMlB9ijxMD2P6Zshom5giw1FmbsIrkbq5j/k5jdN66way5mAJj 2kA/PdqxhkJYVRrFNlz8rT7HhklPrwMB/7k8Y3rfTVIOMGLDjRIbLYnTdonF0aoBAbRd OpKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zSSMjnRv; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc18-20020a1709078a1200b00726be5e715dsi13792055ejc.796.2022.07.04.07.44.58; Mon, 04 Jul 2022 07:45:23 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=zSSMjnRv; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234437AbiGDOeM (ORCPT + 99 others); Mon, 4 Jul 2022 10:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbiGDOeK (ORCPT ); Mon, 4 Jul 2022 10:34:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F33C6FF9; Mon, 4 Jul 2022 07:34:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A4D8DB81049; Mon, 4 Jul 2022 14:34:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBF35C3411E; Mon, 4 Jul 2022 14:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656945247; bh=4vKkwLFsxCCUt/DAhoYCumD0GwJFvW4QXmj93+cMZW8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zSSMjnRvHEhLaq2SqI13XHvyeKm9xgdB7Rxg7uUjG1APSl1ifH5mMeUs3cFqKYAER vL1Me2dmsgCYsZp67z7BMkRNDdq6YmK1JuGCrUiG5l+2OwtSKNni8hQTYRK5ku1rCG CwIwzYKeytu08BvL1qPdqWl9G5LRbS+1nNMy9hjg= Date: Mon, 4 Jul 2022 16:34:04 +0200 From: Greg KH To: Martin Fernandez Cc: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-mm@kvack.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, ardb@kernel.org, dvhart@infradead.org, andy@infradead.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 v9 9/9] drivers/node: Show in sysfs node's crypto capabilities Message-ID: References: <20220704135833.1496303-1-martin.fernandez@eclypsium.com> <20220704135833.1496303-10-martin.fernandez@eclypsium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220704135833.1496303-10-martin.fernandez@eclypsium.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 04, 2022 at 10:58:33AM -0300, Martin Fernandez wrote: > Show in each node in sysfs if its memory is able to do be encrypted by > the CPU; on EFI systems: if all its memory is marked with > EFI_MEMORY_CPU_CRYPTO in the EFI memory map. > > Signed-off-by: Martin Fernandez > --- > Documentation/ABI/testing/sysfs-devices-node | 10 ++++++++++ > drivers/base/node.c | 10 ++++++++++ > 2 files changed, 20 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-devices-node > > diff --git a/Documentation/ABI/testing/sysfs-devices-node b/Documentation/ABI/testing/sysfs-devices-node > new file mode 100644 > index 000000000000..0e95420bd7c5 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-devices-node > @@ -0,0 +1,10 @@ > +What: /sys/devices/system/node/nodeX/crypto_capable > +Date: April 2022 > +Contact: Martin Fernandez > +Users: fwupd (https://fwupd.org) > +Description: > + This value is 1 if all system memory in this node is > + capable of being protected with the CPU's memory > + cryptographic capabilities. It is 0 otherwise. > + On EFI systems the node will be marked with > + EFI_MEMORY_CPU_CRYPTO. Where will such a node be "marked"? I do not understand this last sentence, sorry, can you please reword this? And why is EFI an issue here at all? thanks, greg k-h