Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp996085ybt; Fri, 19 Jun 2020 21:00:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVq2/sXnWzq6NUqmYh38wvCM4kF53AIS3fCl/Jkw6dhoHB71GPKCkk9IYLYLe0HvNBmnxO X-Received: by 2002:a17:906:4c2:: with SMTP id g2mr2286713eja.299.1592625656471; Fri, 19 Jun 2020 21:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592625656; cv=none; d=google.com; s=arc-20160816; b=b0A9thKwyQOtYrZhzC3Tlb5SItT9f/WlKTaY2oCS2zUHPENy+92pkLs7jaubh3LQic sRoQmpWE4Zxt/zNHNkVPglp//wNyszA+Gpr7iW8bnh++4TiP1BqpnKJcphMGQ04+SnSJ gn7Wsmsb6Mg5579htORWZDX8laBChPlAxcplEnRC1z7kHaKJvhpgV2yi1PXUsRY2djHM oHzjNs/N3h9JZWREJTmadaF11KculxUWHzLLJF/ZjKtHEriS+Npd6kZ37ZQry4npBFRJ LRlTWQSX71BKAm9M3CtY7ZFS5zQ26qe7+ISNmmm4CSfxS2cfMjJZXEF29NXz3r87j0od Mrsw== 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=dEf83idZXvrPsVKGcPR3p3YRd+fKXVKhp9TXt5Kn60U=; b=XO+KbMFBB6wIKvJxq17S7OAbMj5A30iL6TIUhtY3jJe524TbvqRp8f4GDrEybqMfJU VzMaHrXBJgALA/qFMDMhT7wZxL0/1jNLChAYiJV7Nok04uLGFyqNMTfzHdmfFz7CzDbz eiUMdZQ1o64trtXuWtSE5z+/QxqhDCkvhQwAxwQ82oTh0U4sGKpVvT3HBVg/nXn5jDFv 6qfoJi0gJIXMlT6gFJ6kZoy6qvDNoy1ABt1EL3W2lOa9iwHIfNsuN1eY6aBljwNq8/nz cQYo4CNvSR6XipB8MQMdETIkPDeES39abpname/ED2xUCgDzCupfFfmOT3Ulq+vXxC11 OFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DGBlgQlC; 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 qw12si4890870ejb.492.2020.06.19.21.00.34; Fri, 19 Jun 2020 21:00:56 -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=DGBlgQlC; 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 S2389943AbgFSQbr (ORCPT + 99 others); Fri, 19 Jun 2020 12:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395042AbgFSQbk (ORCPT ); Fri, 19 Jun 2020 12:31:40 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7090C06174E for ; Fri, 19 Jun 2020 09:31:39 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id s192so2431210vkh.3 for ; Fri, 19 Jun 2020 09:31:39 -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=dEf83idZXvrPsVKGcPR3p3YRd+fKXVKhp9TXt5Kn60U=; b=DGBlgQlCnRLuOM3zrU/WFVPlQWoH3/GzaxHTx7AqPPQ5bnm1kf7M3WdU0IEjH0YpoD /SfedgbVSc+qL4Xnuqg2YoRwDs5k0GM8lEgD5rLnYyomCnpJss/+90Qf0kIGFDNbvcHQ 0T+jhrh9b8lGPjrLghzK2xc4+MG8m7I3gPuS5rQOySza9Ewp8TBsL60R6i6day2Qb7GT eYXBgGK0X67NR4eIkTC1DOgtIYA88hk70LNH036MzfrQyrdF0BatJS+sML7zIo4Q2Vjw XRq9r7E/lh+kolFEz65lAECGDlKwZcXCBXvaUHKV9G2scpUFYMSuT/Kg+LOHFv+besKq 8c1A== 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=dEf83idZXvrPsVKGcPR3p3YRd+fKXVKhp9TXt5Kn60U=; b=pjc5ZYPdhmoaeFd7aevUHVhZKxiWvX46ZZz6dO2WlWrQ4I4kTQLtLOgv61kW9hkunE cDJh3DQ4sUAvFHKoHIM39eK05gNfh5Y9gxLa0bRieqHk/9sImrx62soh44587Tao8EK9 Wzqx2p5UItzDnEecpabYNTmQ0SMkGbDskD7E6cZF4ZMnvtdwki6NBsQlLmAk0W3gHLo3 R/iMyGoiUXAJirFz2eY6Yzgf+g1NH9xZORS7RvMmWgioc4vr5VuegPPYJYopJz1+i/qL hNpgoR7scXZdtxuFbfpAW3CWHW+ekrOcf65nAIEYhhyUZXsV2BZKeKdxYwmnjkErsuwN A6qQ== X-Gm-Message-State: AOAM530dafxv0qNYboDqDS6CfXkNtSaxAge7KdH8K92HGdqxv5OFy4u8 f/E9b7DlpvnPRIiuvzVRPT/biMKcDDpjT7LWkkk= X-Received: by 2002:a1f:4303:: with SMTP id q3mr8159836vka.65.1592584298930; Fri, 19 Jun 2020 09:31:38 -0700 (PDT) MIME-Version: 1.0 References: <0DD7FAE4-3976-4835-8090-80B84B737F3E@amacapital.net> <20200619161752.GG32683@zn.tnic> In-Reply-To: <20200619161752.GG32683@zn.tnic> From: Richard Hughes Date: Fri, 19 Jun 2020 17:31:27 +0100 Message-ID: Subject: Re: [PATCH] Ability to read the MKTME status from userspace To: Borislav Petkov Cc: Andy Lutomirski , Daniel Gutson , Dave Hansen , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Greg Kroah-Hartman , 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:17, Borislav Petkov wrote: > Well, I believe all the kernel can do is supply bits of information - > just like MSRs - and depending on the settings of those bits, userspace > can decide what the situation is. For example: > bit 0 - CPUID support > bit 1 - BIOS enabled Yes, something like this would be entirely fine for my purpose -- I don't mind where or how I get the data out of the kernel, but parsing the entire systemd journal for a magic string is something I really want to avoid. Richard.