Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8980102rwd; Wed, 21 Jun 2023 01:08:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UDNmGk19fBae7OIv33Qm0IgxcFB9sq+ZYGW+nmZrj17fnrOx723ftf3dlD2YrHJZsISjm X-Received: by 2002:a05:6358:a50:b0:131:b4c:b864 with SMTP id 16-20020a0563580a5000b001310b4cb864mr1547906rwb.0.1687334899381; Wed, 21 Jun 2023 01:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687334899; cv=none; d=google.com; s=arc-20160816; b=BTinLhc1t48OQkDp5lkGLTxKwc5cc91M87UkescIfYxfPvtyOqOgAQ7hmfSV1uvgkn wW+rLfGFNB4mMf5qRyZYTUzYn8An0JfPd3GribSakzJZ9tXhlBTLsvGRveVrNBmIVvFH 7SL8hm+gJCiM4tqc32kmislRMfewJmXdiprwN6Q39sD+LYBjk5uQKSLzMJjNuOLWidV+ 9zPUncZjNItGtE8RmksowbecAgwvz4SxhDNUg0gAnbt4O+ihMRHjI41HqZOm/tZPQVgT mYFBdhVmRoN/8TItGdcQPmTeGx6sgR8BSNiAXL7C/IfC4AmbGWltjS7U2e1r1rFLmrf4 buhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CVccEsCRdBl+DyRFyKD9+7GUkI4WQ8YmpzDSeZ8LLAU=; b=jrgKrpH0je3j2IsmgPBHgR0SJs/ha9OvOcWrjjQrdz/jiStiOSyq4COleX9jMX+V2d MPlt2DUTmzJ5XUqtdsQoBuWFidukuVXBfsKuHDogkWqJMkqF3UwXVqaYyVD0i9ZAlZqR sNTcSP6ETQKX1SdyhVe/dL9Ij2A7n03EqkGFElV//Y8vhDgsJzqVSJb++AOGYZX8+L6+ ormHR5+C18ODGFtiemYLBnWth5XmsedYFuBkLXs5HQH6kfAaMbei1WT1uk9dnG49XDgc Lkphfscz3YMfshbQxWyF2VmR7a6iiPNOawyZqb26lGwOFopPXIH055NR1cLfehsWqyFE pKgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UBnRecR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a632b0f000000b005526bd0c526si3533962pgr.641.2023.06.21.01.08.01; Wed, 21 Jun 2023 01:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UBnRecR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231419AbjFUHmI (ORCPT + 99 others); Wed, 21 Jun 2023 03:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbjFUHlf (ORCPT ); Wed, 21 Jun 2023 03:41:35 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E00671730; Wed, 21 Jun 2023 00:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CVccEsCRdBl+DyRFyKD9+7GUkI4WQ8YmpzDSeZ8LLAU=; b=UBnRecR5iA9zqnqiBJcqz/55xX A3eIbAZ/GIqVk7aCdQreoS1qGWET767UVs912HwOcxufzXOO6gUWD1lYTvrGW7Q+fHkeUp2WRyI6b Czg6gAQuewKvft8SHyw6qZTWCNcab/QS9ZetefpYPqBSVS5pgLHgsFt1MligyngRxD/HNmVH+ScX2 fEOd1fOg+ZxEKwm/K94SXpWKXJUas9bYQJ48cm1/pUj94sr6QTUt2j1j8sbAKuUkw7xrA3l1Rgrql zJjWxJwuMHLs1SMV/olYwiiBxyLDVYkMxk7yfgnMFm/IFtCt+2LEq63jT5hlAIRzGOM50+N3H5US0 pFYuljTQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qBsSg-00HITA-0Z; Wed, 21 Jun 2023 07:41:09 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AA29F300222; Wed, 21 Jun 2023 09:41:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9424D2BC73BD5; Wed, 21 Jun 2023 09:41:05 +0200 (CEST) Date: Wed, 21 Jun 2023 09:41:05 +0200 From: Peter Zijlstra To: Waiman Long Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Josh Poimboeuf , Pawan Gupta , Jacob Pan , Len Brown , linux-kernel@vger.kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, Robin Jarry , Joe Mario Subject: Re: [PATCH v2 1/5] x86/speculation: Provide a debugfs file to dump SPEC_CTRL MSRs Message-ID: <20230621074105.GE2046280@hirez.programming.kicks-ass.net> References: <20230620140625.1001886-1-longman@redhat.com> <20230620140625.1001886-2-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230620140625.1001886-2-longman@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 10:06:21AM -0400, Waiman Long wrote: > Sometimes it is useful to know the states the SPEC_CTRL MSRs to see what > mitigations are enabled at run time. Provide a new x86/spec_ctrl_msrs > debugfs file to dump the cached versions of the current SPEC_CTRL MSRs. > Pff, clearly I can't even read email anymore.. We don't do this for any of the other MSRs, so why start now?