Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4176422pxb; Tue, 17 Nov 2020 13:26:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwnF9HZKPw9dNNbJAZrLg5g8BpYzqcjE4ML9QZnMvVR4HXdnMWCLk37k9Jc2pJv9Yr9t18 X-Received: by 2002:a17:906:1f86:: with SMTP id t6mr20890797ejr.356.1605648381762; Tue, 17 Nov 2020 13:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605648381; cv=none; d=google.com; s=arc-20160816; b=Q/XK7qIS1n7KlV2E2NjMliYrKF0mCNP9T5HK5Lud79AV1P/MM/8PD3ZZ/KxiuguC8w k9W1rpxnpvWbTlqMA9w0KB16RyUnjMGvlfR8/nAkzhVdJcTHbxWcpYuoOUc2M7OHBhfp S38RsqmSJZwft9ya9TnIPpi5hFtd563Z5o4VD65zLtmmz59LLrS5p6YJ7zAhj/dAvQN4 r8L8SIOkAhQm6W1vo7X4fsNmdKFJ6xYtX3qjFyURBCcHXCgRxrqLFHBsibxTLPCZOewW 4C2QVqgDinNEwZv83Imn3fAbG0VY42gIQvgDzxPsnzYbFeJToQ7T8g6WYpIoQudYZRSQ s5XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=katWkOXeT9cKSkuNJDqg8k4n6KRzCgL5P/0+AH0wLfM=; b=grV6fjoJdIRdR+zbDktzyKspi0RQ6M534orQwhbtlC+LzXhXGIufnGhNomiwhp6Pds EKysJZIxI+iToTpOuS8EgueeSDd1SvCa6A5/5a4H/azhW62F5F5S8HlD35AG+/z1OWWi ZKnLOXeXh12xRU2Y69koCPo2YIh+c9eJ6h9evIp2PwFgybK9FDpHSF95LhTSpyKw3ZLh ckDyujiWxp+uoHUh5uhqFzLQAcejdkMd9Ovque0jtlV/CDFVc6j9JmPGLKlbaUMZSdzi AFKqBeycWAjKY1VRyiLUYWKv+gDnXytabBnhLcV0yQ99T2EqIMfHQIPZAdFmeSKe2g2e cL6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OIte6M7w; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si15262168ejd.407.2020.11.17.13.25.58; Tue, 17 Nov 2020 13:26:21 -0800 (PST) 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=@google.com header.s=20161025 header.b=OIte6M7w; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727151AbgKQVWC (ORCPT + 99 others); Tue, 17 Nov 2020 16:22:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbgKQVWC (ORCPT ); Tue, 17 Nov 2020 16:22:02 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9DBC0613CF for ; Tue, 17 Nov 2020 13:22:01 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id y9so18933ilb.0 for ; Tue, 17 Nov 2020 13:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=katWkOXeT9cKSkuNJDqg8k4n6KRzCgL5P/0+AH0wLfM=; b=OIte6M7wsOrmtWwknxeObOn8TCXuM0vl3WAjff4DmRbczKi4M8UaTl51zQ2FW7gJaC d/zEWf4Mu2SE5K2yCrMLK/NQsU9FtlhqIyA2sk6oqxiUWaoqh8q9Rvzos36JxoLSG9y3 eKqArLFp4ESRwR/4stCGSzWFcb/BLNvqZzunIFQrfvHjoS1PXAzKl7u29oxfqFm6mojb 3vJJFewJ3GYkdUG2FGhWIIPU10LpqipW1urXgZLfi+mIUeIAXWP7q8nDR79/hrviKIG1 KEsdLsTSimbhSj+SW25moXW+UABKy0TbdFT7ktcsa+er7dPGw9wfK8ylaFS+dDAi/wxL 0Csw== 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; bh=katWkOXeT9cKSkuNJDqg8k4n6KRzCgL5P/0+AH0wLfM=; b=jfVchzk/4Y9g2jfRgu9GllamLyIn6rFiXPI+VFZzUfIeshCOovCBdNoy/Epni+Cfsa 1q29E8SgEUoyt6i1E/RFty5s7SZqYd3lwNNXNH/LhPKR4VeteRbkx7KgiDTdOGUZVXWR 82+iIlZB3GlqIZ8tdeyLqAs6FXqI0CgCxJcQDWYCftix0eHuX5kXXGIiYevEsDWpydt0 OVzWtKEY/wTr+6QOPrycwPtViH6lp2H4bpL3p2zU0da8TxOIoDhxhVksHjr4pEWr7E+D 9igtxja9VNfkjwRPNig+YqTdtFebjFbW2jMoiqoENM0NVajE4G9FrmTwg3r2TlGU1h1z VaQw== X-Gm-Message-State: AOAM530zc2tVcOobRpSZ79GezoUCffVIdiCe9YvB45Gz1A+6qNomu2Fg 32fdWgIMYuFo1wkCswMpbDeo8aUrZdAnTZedGsA7xQ== X-Received: by 2002:a92:1f19:: with SMTP id i25mr14165325ile.198.1605648119997; Tue, 17 Nov 2020 13:21:59 -0800 (PST) MIME-Version: 1.0 References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> <20201117210018.GA4247@weirdfishes> In-Reply-To: <20201117210018.GA4247@weirdfishes> From: Matthew Garrett Date: Tue, 17 Nov 2020 13:21:48 -0800 Message-ID: Subject: Re: [PATCH -v2.1] x86/msr: Filter MSR writes To: Mathieu Chouquet-Stringer , Matthew Garrett , Chris Down , Borislav Petkov , Linux Kernel Mailing List , sean.j.christopherson@intel.com, tony.luck@intel.com, Linus Torvalds , "the arch/x86 maintainers" , kernel-team@fb.com, Len Brown Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 1:00 PM Mathieu Chouquet-Stringer wrote: > I'm late to the party but it seems allowing MSR_IA32_ENERGY_PERF_BIAS > has the downside of flagging the kernel as tainted without telling you > why if you use something like x86_energy_perf_policy (from > tools/power/x86/x86_energy_perf_policy) which itself is used by tuned. I initially pushed back against a kernel interface for MSR_IA32_ENERGY_PERF_BIAS (cc: Len Brown, who tried mightily to convince me I was wrong here) on the grounds that it was exporting an implementation detail rather than providing a generic interface, and that it was something that could be done via userland instead. I thought we'd end up with more examples of similar functionality and could tie it into something more reasonable - history has proven me wrong on that. I think it's probably reasonable to dust off the driver that Len submitted however many years ago and push that into the kernel now.