Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1014056ybt; Fri, 19 Jun 2020 21:38:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvLiQPDk6q6sKPkFQQ9gW6AZ/0ekHnRSyXaEeSfmsnvV5xm2Q46UQEe6ezzsVtBGTHGmW1 X-Received: by 2002:aa7:c4c7:: with SMTP id p7mr6735893edr.271.1592627915137; Fri, 19 Jun 2020 21:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592627915; cv=none; d=google.com; s=arc-20160816; b=H5zrwgFNrgmlnUCBGmoPWm9jaAi6UUVnHUenl/4JcdBZQR7lYgSHHZKBAdElv7l/8Y nlkbQR9PkEHwS3VW3mqDJT7RmhlezFBtzFc9p2H6KVI1Y6qVJkJjuunSV8oyJkTMQ/3e owiMFMNhQRv/YlVEBSdxvpcPvrrGcbj7n+1ONs5G7ji7oLP3c1SGwG8t71qppdw5WYOb goXCBcU9dAoJcvmhHJ0XNLbSI3l/fHaIwkRuUyOeOxDp15kqX1v2O7Srw1zhzPF+3Ra2 a7Xl6EXr8JT7YCG4TMULoo2/USmGPxt1T0xu+beyzf+DK4LKINF3cd/Yr3hKFjluO1zk jZoQ== 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=5P1biYgKc9Nq54rw9Pc6fjuvnDZztG4MWOhECOt2hVo=; b=z2zR6Fmq8W2TmqeL02YFVU7nkr1g7g3crQNK7J6pgUjt5EU4ak1LBvMdmuCVy0wRkf krV5/UtMYIcRoWX+KAn+ZgLZZWb5hg6nBeLAeavIDEXWX6NFVwJ5UH8ZHbCipGCf3gu+ /TsA+++loFwO8vkbU8DhC3h4owzCKxUVQUqj5emMBLHsNs9bvmYI1juAUi7E5FyZT1zu kWTjr0LEcHRJvPI9K5Qg0TC3WEeebWaK/VgvCj5x0fVCKTuQYYn4qBk4ndwvCwrbx0xd GB1MSeLS1WKWgyes4+MrYkEuxrJyxY0q4uFQMneZlwV0tlX24JFEfRQqiSrvmK1xZ7o3 cq9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jY4pOyYz; 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 dd12si5093701ejb.59.2020.06.19.21.38.13; Fri, 19 Jun 2020 21:38:35 -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=jY4pOyYz; 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 S2390827AbgFST6h (ORCPT + 99 others); Fri, 19 Jun 2020 15:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390834AbgFST6g (ORCPT ); Fri, 19 Jun 2020 15:58:36 -0400 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB4A4C06174E for ; Fri, 19 Jun 2020 12:58:35 -0700 (PDT) Received: by mail-vs1-xe41.google.com with SMTP id 190so6258573vsr.9 for ; Fri, 19 Jun 2020 12:58:35 -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=5P1biYgKc9Nq54rw9Pc6fjuvnDZztG4MWOhECOt2hVo=; b=jY4pOyYzaQugUwgcqlEWlo46LB1hb2MhsDOLXIc2Op9UORON/wBv0h5BH6cS4ube2h jGVYX3hWlyR/6d9RVg6BkU4hc6zuVvgRH67T+dDrveH7IFIkytgCP1SjBs6vqxYyJ+eD DjaR1mSKtkS/KmtbKpAI9Ei1l65GPpTOSDomVKw6Atrn65aAvZiykFgFafvfkwFGS9x9 0qZIi5aB9zZVJUYVtmlU/RGS/ZLT+QAhGC84IDRVIlTDUoLxekuklzDHB2oaqi5HOQhF duNtSIcV8as6MyfUvg+toYwCX2Iunk76e418g0juybCYrwk++w+f5sd4+59Jn7k843Wg atZg== 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=5P1biYgKc9Nq54rw9Pc6fjuvnDZztG4MWOhECOt2hVo=; b=io8GI/l3aPpF23R3SUOgFvQ+p2g6eKfCw2MgGREwCI4JUb41623f8V97xei7PZhL9j igUFtxEHya8l1yDbmrdO/Epl/i5USohLSuIrW/qb0UM6ZubNBooHdohP3Vjfd5HTJCax igXabOjo9iqJ56oLuOuz/QzqjOuYyaBlh6UKdTWlBdIKxbpmZ89q1lWjLwzBpnO7m9nM PRK7NUbNVlJa+u2VpUH3Suo/OCB8Vopy7DUX/2uuA5p0U+8zC0dIXqTRtb/UtC4BPiAI SlFnd/J3gJlniUTc//i68NkaqlOoP4Se5UTkdclJzEYeXTjWqtJ8aBFlwZOoqQTYnbG6 cb5A== X-Gm-Message-State: AOAM530T0HK8jGfk9FN0Xf4eaicB/vTgXg1ldhvtfh4c8BcZQo0gh9OZ MpRBGlwtwDf0xuHA5gSHhhTrPnTQUtWiSSHBEFk= X-Received: by 2002:a67:d597:: with SMTP id m23mr9178092vsj.209.1592596715104; Fri, 19 Jun 2020 12:58:35 -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: From: Richard Hughes Date: Fri, 19 Jun 2020 20:58:23 +0100 Message-ID: Subject: Re: [PATCH] Ability to read the MKTME status from userspace To: Andy Lutomirski Cc: Greg Kroah-Hartman , Borislav Petkov , Daniel Gutson , Dave Hansen , Thomas Gleixner , Ingo Molnar , X86 ML , "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 20:41, Andy Lutomirski wrote: > I don't object in principle to Linux giving userspace more visibility > into what's going on, but I'm not convinced that adding a new > must-support-for-a-long-time interface that only solves 5% of your > problem is worth it. At the moment the only visibility we have is "the CPU supports TME" and "the kernel printed a message in the journal". The sysfs/procfs file read allows us to notify the admin if the firmware is deliberately disabling TME for some reason, without resorting to `grep` on dmesg. I don't think perfect should be the enemy of the good. Richard.