Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3369872pxk; Mon, 7 Sep 2020 10:54:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/GQWkZTOjwR/eniCqtZ5ceES7qb4BnC/P3YQ3a+3edY7bJ60tC3CZ/pLXvpHZMw/+dY2D X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr21381207ejo.87.1599501272779; Mon, 07 Sep 2020 10:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599501272; cv=none; d=google.com; s=arc-20160816; b=FEQqnxwlun+MK9uIeG4z3+ZqbNVMRhE5Xfulwlb2Mv61s5Tx7Xcz5uOuL7lu62uEG0 8N2KoUwVj5PPvKZy3Jg3tZJzEvY+R8q7ZQ9XZsCBbDesnDYQx7JjtpW7IHpaH4YlYT62 JjarnhIRFqbgKaSOFZjx1qoKXxOGHl94azRM24N6c6Hy16JwUPVpcwSn/0SmKipJpsxC XpTa3zaODrWJCrbe7kCjjDqxQk19OVeAXn32GwPnjRyq4AF3ZVYmnFOZC8VGAng+pRO3 Gb/euMm+UqLv8bnaxp+KaEvOQBjYPeQJHGCPYiFmuEd6mamxS5zF27XBRNDLiu3uJbQ5 0m7Q== 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=7aHUFz8z8HXZoDDtX/mcqXNHzz5ehkgh7/St8AwvguU=; b=L7a8+tBkdaICHrRoG2JV7LWndUsP3nPQ+Pj4fkJScinixrGA7yYH6GrYn1ObPRuF9d +kGKcX1hVwP2MHBrRf+fS2FvYDqYVJnraUoEi1THp7tMuJLBlP/4sNY4de6F+Eusux82 sLvtKgj8k6K3j3qYDs4Jo772OqbBshwryK0jlQn8fOJy+vH+0Cet5lY38oNb8hRshrRr ufR3vIYZ/F5TFltyXeeBvV8MX3UX/34Ag2vyZONbFgLFXDYN061kKWmOwt0Fm1/Qvg7V 34RlkSRvlh/mOglLGxzTr+mB0/P9h9WabhRrL5WKSDvTBipwcdNGseV/G/1CVkqbUb9z +aaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TZL7+S96; 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 r25si10012056edo.12.2020.09.07.10.54.09; Mon, 07 Sep 2020 10:54:32 -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=TZL7+S96; 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 S1729268AbgIGRww (ORCPT + 99 others); Mon, 7 Sep 2020 13:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728951AbgIGLXt (ORCPT ); Mon, 7 Sep 2020 07:23:49 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 327CCC061574 for ; Mon, 7 Sep 2020 04:23:49 -0700 (PDT) Received: from zn.tnic (p200300ec2f09090030eade31917bbe1c.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:900:30ea:de31:917b:be1c]) (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 A2CEE1EC0445; Mon, 7 Sep 2020 13:23:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1599477827; 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=7aHUFz8z8HXZoDDtX/mcqXNHzz5ehkgh7/St8AwvguU=; b=TZL7+S96XjOnWVb/OXGGthMwo36VSGuzdd5iSOdBePEFfcyfV5tGM408XBo9f97SY8Ar/7 J1UnoCVmOdZCYAHcS4NnrCS8M1oecVQyKk297e4Or1gpH8Rb1wldNUKT8q1kUTctzkJNK/ N5o3T3GNn8w1YHMpulL7s6LTe90NKl8= Date: Mon, 7 Sep 2020 13:23:46 +0200 From: Borislav Petkov To: "Jason A. Donenfeld" Cc: Srinivas Pandruvada , kitsunyan , X86 ML , LKML Subject: Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX Message-ID: <20200907112346.GD16029@zn.tnic> References: <20200907094843.1949-1-Jason@zx2c4.com> <20200907100647.GB10657@zn.tnic> <20200907111109.GB16029@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 Mon, Sep 07, 2020 at 01:15:14PM +0200, Jason A. Donenfeld wrote: > Gotcha. So your perspective is that the goal is actually to have no > list at all in the end, because all MSR writes should go through sysfs > interfaces and such, always? I certainly like that goal -- it'd make a > whole lot of CPU functionality a lot more discoverable and easier to > tinker with. In practice, it seems like that's a hard goal to > accomplish, with different MSRs having different semantics and > meanings of different bit offsets, and a great deal of them aren't > actually publicly documented by Intel. Were you hoping to just handle > these piece by piece, and eventually Linux will have a decent > compendium of MSRs? That sure would be nice. Yes to all of the above. The MSRs should not have been exposed to userspace in the first place. See the commit message of: a7e1f67ed29f ("x86/msr: Filter MSR writes") for why not. > Is Intel on board with that plan? They better be. Like the other vendors who have MSRs too. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette