Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4882672rwb; Tue, 6 Sep 2022 14:28:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4zkl3+G2c5je9XroJrBgAtz1tVv1UgjMJvJWPesuHzy6fpGHM0MUPEGA0s2QPiNh0dwZZT X-Received: by 2002:a05:6402:2789:b0:440:44b6:849b with SMTP id b9-20020a056402278900b0044044b6849bmr457017ede.387.1662499711996; Tue, 06 Sep 2022 14:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662499711; cv=none; d=google.com; s=arc-20160816; b=QBbMODDzCUOtAe5Lvqz5lyN18u1UBUuUgR0wrM1xTnlrVPgtaiMHjytIw2Yvx1k00q ei9wSKIbyxR5OHAf/toeHyPpY+YhO6N5AWpcdW+5bmHFOLh+UpEU/2l4FXz+T4KyWfFI 1aPIN31VeG2qo7h2AzP73clLH67gjFDq352NShCvmekM//b7xfsQUtOj2cWip3N/+fGr Ait/f5Jb4poUubc7mW0Md7sCC0ZgkpdcbdCsP+4EE3jLQN0xuExyoryX65FwqTPobfGO 0fc9tVsOIgwH2wryzR3T/yujFT+euWIA9l0l575ympR3Q1vMPBRkpHhacw9bjhr7/qvv n1AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LPRivCeSjBulelI1+kw/PdRERXMqiUKrh1hGXvPKua8=; b=sFikSyvwxrl9p+ury4p1d4yKGw51z7EMd5dfVBX7vpJe1Yg3XPVX2pQSxrw5fY3SLj S0nq7MXk4zugl/diG8RLgGwlKeWa6xlRpj9vu5CcvgWPa8Gy1hwIqyzSr9tactfRnlvU E4HgGLlOsHmItmrgmm5oWFYvWFmPWYETMoo6jVMFeCnO6bfRPGb2r9vd2DUi2S0lwQM6 aJjictJXIEY62GqQQbRKgzoO9Ln0LNnebdRBzUIuCuEV2TUOaRf9ApWi+D3W4Tgjr77y nwj3fOVXBge9UsAFsA2WORcHvzPL5LIm788Cm8+TQ3Irr9Hi5yNorIBocgNRf0TZjLSA YwsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FZb2urG9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw19-20020a170907a0d300b0073d785d443asi7967131ejc.708.2022.09.06.14.28.06; Tue, 06 Sep 2022 14:28:31 -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=@redhat.com header.s=mimecast20190719 header.b=FZb2urG9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231451AbiIFU5U (ORCPT + 99 others); Tue, 6 Sep 2022 16:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbiIFU5D (ORCPT ); Tue, 6 Sep 2022 16:57:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1CA9E2FD for ; Tue, 6 Sep 2022 13:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662497811; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LPRivCeSjBulelI1+kw/PdRERXMqiUKrh1hGXvPKua8=; b=FZb2urG9JKgh4QumL+yOI5Uls3DG30x9kgTDm5k1dD4oarmZCTKtLzwcU90gM/on5wVOWF DAt6/272FclKdUpD50hfm00YmqY+cf6UpS3BXEgpY0N1ZFiHdCQLrKKtfMUu8Wyn9UIEsE DpqPEe70RwIAyuPaygdfqBqUoHw8cnM= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-663-cj98G2QpOcm7JWnKY42eng-1; Tue, 06 Sep 2022 16:56:50 -0400 X-MC-Unique: cj98G2QpOcm7JWnKY42eng-1 Received: by mail-ed1-f69.google.com with SMTP id q18-20020a056402519200b0043dd2ff50feso8211546edd.9 for ; Tue, 06 Sep 2022 13:56:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=LPRivCeSjBulelI1+kw/PdRERXMqiUKrh1hGXvPKua8=; b=BwxVxhFN5SqAgHE2TKwtzxdIwDzOyj6dTIl6V6Ip1lgodN3NQuWTkfTJoWfk3ETKZU NFR/asGE3ZpSqte0M8okmwuZU23bmKQ/4lwbiOBpUNEduJU9vQWNHlw4f17e/VbIRuiw bpvrwbZSQKBmXII0I8PYq75Z3Ckowrpe1Gs045JggZ1G3PvWEESiXFP4o2lqCY8zEzbA XVpBGLOw/5drRnA/wXhWYoFBQBAWfP+ZCjNZzAZjJGe/c92v1vet0LI6auLW9f16/mXQ /AKF5GIRTZ821S5GDez5t2EU9IowBrCsmXJIvDTBnQfwYSXIE4ST3RHH6IfToNqu1+8v 8QYQ== X-Gm-Message-State: ACgBeo2fwQIWVNMPZBTUi4WJotXe/JkXlB+kSyaFtyKXfVxI4c/ci1Bs wzlqw8No8G8p3YaN0rmeHclWAHPFlDTC73axwf9XB8KZ/LKbm44CxKuWRNkzEPLy8hWN1rh5fp3 2/6/hsJPmlErPeUO1qBo9ObTe X-Received: by 2002:a17:907:7b93:b0:770:1d4f:4de9 with SMTP id ne19-20020a1709077b9300b007701d4f4de9mr218709ejc.201.1662497809302; Tue, 06 Sep 2022 13:56:49 -0700 (PDT) X-Received: by 2002:a17:907:7b93:b0:770:1d4f:4de9 with SMTP id ne19-20020a1709077b9300b007701d4f4de9mr218699ejc.201.1662497809123; Tue, 06 Sep 2022 13:56:49 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id b13-20020a17090630cd00b007308812ce89sm7070197ejb.168.2022.09.06.13.56.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Sep 2022 13:56:48 -0700 (PDT) Message-ID: <6ff23930-325b-4207-12fc-4d8fd5bea1ff@redhat.com> Date: Tue, 6 Sep 2022 22:56:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] x86/cpu: Avoid writing MSR_IA32_TSX_CTRL when writing it is not supported Content-Language: en-US To: Peter Zijlstra Cc: "Rafael J . Wysocki" , Pavel Machek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen References: <20220906201743.436091-1-hdegoede@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi, On 9/6/22 22:43, Peter Zijlstra wrote: > On Tue, Sep 06, 2022 at 10:17:43PM +0200, Hans de Goede wrote: >> On an Intel Atom N2600 (and presumable other Cedar Trail models) >> MSR_IA32_TSX_CTRL can be read, causing saved_msr.valid to be set for it >> by msr_build_context(). >> >> This causes restore_processor_state() to try and restore it, but writing >> this MSR is not allowed on the Intel Atom N2600 leading to: > > FWIW, virt tends to do this same thing a lot. They'll allow reading > random MSRs and only fail on write. Right. So I guess I should send a v2 with an updated commit message mentioning this ? Regards, Hans