Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1000337ybt; Fri, 19 Jun 2020 21:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweEQd/i9Hwlh068kZlVqEDVQQiXZHhNMzsQDTVLnHSNJxO3xJ2dy5HRCZueraQ2UWPnyAO X-Received: by 2002:aa7:c38f:: with SMTP id k15mr6702918edq.342.1592626176027; Fri, 19 Jun 2020 21:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592626176; cv=none; d=google.com; s=arc-20160816; b=fa73vveRLB294kp27Mhs/7B+yzABH40EWTMeuL9rDkbQBH0PLRlP2jqFJa2tWnMKsB Uwr3pgVmsmTuhne3BLrokNydYtO2Ui/AZEwBuJ6LR/2ODNnGhhMn4onI/CM4MAy3jYR2 uPRJk1d8DkHu9LY7mKZqFxI+WUq0FJirRjH2NLyRfKpd0Y6PxA12eMKjnSrAZ0LDPgpw 9maiCicZuhvlriLLRgapjE/+4nvFcacYnPFFpRFUHCg/zLr4nsOL1JpzkoOUP2lnkjjB 89tqWyQBvj97mLF03EyWPvwbTj6dKyaYzT1ltpY71I3mDv2Dz7qnmjeHCV7ZVeUFfadi 1w7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NWEHEDf9ab+QI14tCX+z1GolOFkuRHuWtHZkHv7sE/8=; b=craZqiCEntag6bfeQK2ZfnD6NiRV3+cwZMgP2gtoiW2udT3u/kelLjwq7Ria9fYWXS paQ7JpoKSFyqd+Z0QRZDP0fP7f9vN7gwL+QtD202+iOqsyzb1tiHToQsU5V3ckkwx0tX uKEuEpILvc3u5eAsmiXMbx7ISuKHvg8IpwdIK0HHyDUAX4F/AhTF6hiwwdYdVqzLIA+5 db2D74nXcSeMdgC0CMW8+ffIPmi0y6omKYw6A/3gqk262OkQTf5/gK62bS0kflbJ39vF KJh7iTDXYUDu5dzEkwwY9wshnZSuaH0jtRXEQdWf1LOzq/wxFdFCUH6R66wC+ADYHKhM kvPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQKBtVxb; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si5025869edy.372.2020.06.19.21.09.14; Fri, 19 Jun 2020 21:09:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQKBtVxb; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393702AbgFSQr5 (ORCPT + 99 others); Fri, 19 Jun 2020 12:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388196AbgFSQry (ORCPT ); Fri, 19 Jun 2020 12:47:54 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4458C06174E for ; Fri, 19 Jun 2020 09:47:54 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id q2so5967007vsr.1 for ; Fri, 19 Jun 2020 09:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NWEHEDf9ab+QI14tCX+z1GolOFkuRHuWtHZkHv7sE/8=; b=ZQKBtVxbpMHTtarCdFEv2SLhsy1BOUCpKkvJz+7JCgxv+YLk8hpjSCZhAzUBGAQ2t4 +4YZTMvnx+jQZOqP8+yheWFmnjN6wUksFeVVlPRasvalm5mL/phB2Uw2Dpwkx4wYwtx1 ak4GFtqU29TNADOA1+On2OteQPA5/swts1SbLg92Igwa6/zSOrESGoCqlzS4kGd6qbV0 fUA8bTqfUeUHaaBzHIfPrWawa//gyGKcrkLltdj6GguP+ufq93wLJbA1CYEEknvQEs9Z w0Z2OJvuAhb28Xf7dsz6nK3QfzKqBfyzurDhADJ8v0x4BqJBMKiLfZgIMYq/dx+H9BfL rVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NWEHEDf9ab+QI14tCX+z1GolOFkuRHuWtHZkHv7sE/8=; b=cm8iXqi4svszy32nPAmJJ8+mrXfPgxsLjDQRYL6ZWg4TMzC87FcKHBS+iOSnoc6AnF lkhnUuN5DLsDvuWjptUQAJmfM9KY9wCZHnV25BGNJvU+aFWTZOjxRutu0aFI+3MmQhnT vKhzedrNruYyC7XD21j7bzD82R/l/wTARz9MKPzSb5qfFmbUrz7w53QLoYrz5wPkPlDc 7Bn95OIRy2suHsj9I4vQs7KNwhlXOjKV5z++ZSoyxJwseIs5evmikACNOr4kcXhaA1rB P4DauHWCTgRJ9gqnDTzQ0KK7Ho/6k9YZz5yCutkyeMjqTK40XZhEcMOiDjU7JMOM6hUD SVDw== X-Gm-Message-State: AOAM5337sg+igYKPlotJs2YrclgpL710kfoWB+pfduR9AqUMP5bZYS8T MOy33bYuv327u5De/sP2yfMuK99qLcJTWep2Wpo= X-Received: by 2002:a67:fd16:: with SMTP id f22mr8103695vsr.213.1592585273962; Fri, 19 Jun 2020 09:47:53 -0700 (PDT) MIME-Version: 1.0 References: <20200618220139.GH27951@zn.tnic> <20200619074053.GA32683@zn.tnic> <20200619132243.GC32683@zn.tnic> <20200619134432.GE32683@zn.tnic> <20200619161026.GF32683@zn.tnic> <20200619164056.GB2235992@kroah.com> In-Reply-To: <20200619164056.GB2235992@kroah.com> From: Richard Hughes Date: Fri, 19 Jun 2020 17:47:42 +0100 Message-ID: Subject: Re: [PATCH] Ability to read the MKTME status from userspace To: Greg Kroah-Hartman Cc: Borislav Petkov , Daniel Gutson , Dave Hansen , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Peter Zijlstra , "David S. Miller" , Rob Herring , Tony Luck , Rahul Tanwar , Xiaoyao Li , Sean Christopherson , Dave Hansen , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Jun 2020 at 17:41, Greg Kroah-Hartman wrote: > > Yes. I want to show the user *why* TME is not available. > So even if it is "available" that's fine, even if it is not being used? No, it's just one more thing we can check and report. For instance, "Full memory encryption: NO [firmware-disabled, unencrypted-swap, EFI memory map incomplete] > And how can you ever tell if a BIOS disables a CPU feature, yet the chip > still has it? Isn't that what the "x86/tme: enabled by BIOS" kernel log entry is for? Richard.