Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp984946ybt; Fri, 19 Jun 2020 20:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxllujg+COGeQpajkW6hveNA01WUyoREYylkaJDPg1c4HHq5v4MbyKHK8sRU1/Po/jMnnoX X-Received: by 2002:a17:906:5785:: with SMTP id k5mr6307620ejq.494.1592624060622; Fri, 19 Jun 2020 20:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592624060; cv=none; d=google.com; s=arc-20160816; b=xq+Bw4FdhfA6WXDWnsVEMoXoz6S2uHhOjCzUiazzBJPbG13l++sj79jjJXTj5q4TQH GrKTnj6ZqfHrALzIW0G5Y8PFbQtifvK4il+VWYwB/5GCyVKLF9gx/ssdOCXS382n3Izo wcjQ8gssVsfsOUSXKnGx9agg89U/luus8/6g5EZG+R3uMh9AZ8Tt/d2qKgJPP8jrOHrc fDPJ//Qe1SobjW9lsvRssPMHQPAZ/AjMZED4hI53gFo+TVllM0lHSyHglK5N4+8kTEbI XkJtpVlPbIVwZEQchNX+0Ikc12gs0ZS3gJ42xdIVDeYki2UvqTo2+IAPo4aU4cjQgsf5 Aqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=LOyocwucmjef57Km3oWDbSg9YpNpQlJio5fMhK7ei08=; b=cYPg1hI+LKZVapMjZDHg1/KC6lNxmXPhbci7Ugq4CZK6I2nyqECorx5FfWLqfIKxN5 fpMUxgDXocLx1KcRd3Nt2peOo1nqHTMaFlMp+PuVmLG75bfxEP6cCY3XiKQ5dR9Jdyny ht/sVBYouzXI6j5Ja2aamR3kDa68485bhQdAc6L+k2g/v1BbyFkkADW7PKDkweswbXEe p45AbKBhdae6rT0SlrImq98cDV3xpyGSPjjp+J3R5mDB05HEsvH2fKoxWvyAMY1/qt7p JW2VeUm50pPXgdMjwybo41CmAcOvEjT5CfQpWkNR8ocX/5rSwvCapXjLobZufg/65O+E BPLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=c4LgjOWk; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si5064181edo.592.2020.06.19.20.33.58; Fri, 19 Jun 2020 20:34:20 -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=@alien8.de header.s=dkim header.b=c4LgjOWk; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394324AbgFSQKk (ORCPT + 99 others); Fri, 19 Jun 2020 12:10:40 -0400 Received: from mail.skyhub.de ([5.9.137.197]:49348 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391808AbgFSQKh (ORCPT ); Fri, 19 Jun 2020 12:10:37 -0400 Received: from zn.tnic (p200300ec2f0bac00b008f297983004b5.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:ac00:b008:f297:9830:4b5]) (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 D29B71EC0405; Fri, 19 Jun 2020 18:10:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1592583035; 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=LOyocwucmjef57Km3oWDbSg9YpNpQlJio5fMhK7ei08=; b=c4LgjOWkGKcIXpUvJgVkTlI0z53UiGT4J8eo+CcuPlnJ42TQkGIkiHtszUXWGbIYY01g6W XZ1j/IRK4DEWcQv/2zonDNzqs5hpqH0Y+AtT9/RW8yLcGuC2XKhuGmGOYU3BXPyawc+QOm Df9S1Pq4s5hw5bZVisGC3ag2b6sii8o= Date: Fri, 19 Jun 2020 18:10:26 +0200 From: Borislav Petkov To: Richard Hughes Cc: 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 Subject: Re: [PATCH] Ability to read the MKTME status from userspace Message-ID: <20200619161026.GF32683@zn.tnic> References: <589c89ae-620e-36f8-2be5-4afc727c2911@intel.com> <20200618220139.GH27951@zn.tnic> <20200619074053.GA32683@zn.tnic> <20200619132243.GC32683@zn.tnic> <20200619134432.GE32683@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 02:50:39PM +0100, Richard Hughes wrote: > No, it's not a boolean at all. So before you do any kernel modules, you have to sit down and precisely define what you want do to: - do you want to initialize different stuff in your application based on platform support? - do you want to tell the user something so that the user can act accordingly? - do you just want to display feature support? - ... All this needs to be properly written down and discussed first, and then we can think of the best way for the kernel to provide it, if there is even any kind of info the kernel can provide reliably. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette