Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4035159rwb; Tue, 8 Nov 2022 11:10:54 -0800 (PST) X-Google-Smtp-Source: AMsMyM6dWpZb9x54pZM+y570pshep6lvRILJ6v4vvDtXGxfiQDZc3zHpRpCGINWlbGh06bLZnm26 X-Received: by 2002:a17:907:62a1:b0:781:b320:90c0 with SMTP id nd33-20020a17090762a100b00781b32090c0mr51692157ejc.255.1667934654217; Tue, 08 Nov 2022 11:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667934654; cv=none; d=google.com; s=arc-20160816; b=Ul4liTrCG/sHFvxwU8g/VkSSgq2RrQWXx9kkiDe64+HMM1rJ1eNWCu1s5cM3ovwtWP xsnQEfwEQLmtktAzPi6+T5/kFa1lij86/IK3sOI24J9ItzlN7Z3Jx4lUZmsjvECN3CAH nY2GWSNO9UnsSDace4raYIYKs1VGj8o0SVkvgD0vWZ6LiKOgcZ6flgjvLJb8a5bYfHbP Q88+4XSj7unFBXl90lRaRc7lo+VPoRk67MhLhJlKFFhtdLNSShSlLpHxJ21GJa1xdzdX JETfDDY9Gp56yYAW102yUI+6a6jBiwUVRqE2iWxHdV0sjtgxZFLvKZKF875c17DaTkHv rvSA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZTIBa2EoHKouDchxz00pEnvssDa8XaOxrzzltTEMXIY=; b=OfpNx/ZTDGYne0OvyWJV64CyTOXDmEPGiPgKlSrKA6sPZJr9CCUrKBRjuukABfbKLP OzkQkmKnve6e/NAM+4FwXcfT7nnaBprN3LzU8Me82Pp+Twdklsb4xgCuVngb+4IxvjIg IoYd0OePGyU8PUg3qbxfJd1plZ3FjYNHOWHmebZMjzo/44esXHOKr6z1kI/izDaKxzC1 Oe+r++OidlhscJ1dKDhjCLPAYYuRROeXsUkneijOOZGh/mPg+ZJsd19UYsfdOAr7Dh1o ifZFjOb9zXrCiI4ZnF82NYb02jGmuJ3dX5r7GmvOxpGEFI+4SEgUVMbXD/KA6BC3QUEi BJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MecEvypO; 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 dn10-20020a17090794ca00b007a45e4f4ff0si14506260ejc.885.2022.11.08.11.10.32; Tue, 08 Nov 2022 11:10:54 -0800 (PST) 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=MecEvypO; 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 S233981AbiKHSRF (ORCPT + 91 others); Tue, 8 Nov 2022 13:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbiKHSRE (ORCPT ); Tue, 8 Nov 2022 13:17:04 -0500 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 8C21938BD for ; Tue, 8 Nov 2022 10:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667931367; 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=ZTIBa2EoHKouDchxz00pEnvssDa8XaOxrzzltTEMXIY=; b=MecEvypOS1Y7Ez8rhjxgebPE5WWbPuFUeeM2K6JDNeNWsOKnVB5G4Dwyw6sbx9HUBydVQu vfXOCg/ST8TBIPXn1DRLo4C/oaKY9MhXOUwrLPnqPfOwmb4bngcxhNzGSBcsuN26ak67nM gVB9TcDcpknaTDvrLJGwteiYJQUdI50= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-563-TgQ9El_LPHiiuaRVzgn59g-1; Tue, 08 Nov 2022 13:16:04 -0500 X-MC-Unique: TgQ9El_LPHiiuaRVzgn59g-1 Received: by mail-ej1-f71.google.com with SMTP id sg37-20020a170907a42500b007adaedb5ba2so8837187ejc.18 for ; Tue, 08 Nov 2022 10:16:04 -0800 (PST) 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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZTIBa2EoHKouDchxz00pEnvssDa8XaOxrzzltTEMXIY=; b=8MGPBCgH7AO2+MUWserIFYKX36b3Jsboj/p7pDIZmkRmVDDWJNlA3mqBT8mG+Sf2tC 2iR7tPkEjFeI+nozVx4q3jR8GpIPK4hw60/BLJst5I8zquCc9blikw+CxiU6Mq2luZZv 7qJt2pCUbntkQAycB6iVulH/XxAmVspwAJSqpIIQ88NfvYk/VM9vzIVNcYxx7GG9+tsG p3De276HwSv6ak0ElHVXG1TN1OIcebEYQQikatWclIhdTrsseU1u0dMxAh47iP9DM9KD XbujYTqcvG42eBXSMMCHz7ksGnV5wEiKXxQ7lgFGKt1UWSwJW61QY+TP5+S5PiTwoRTV hybQ== X-Gm-Message-State: ACrzQf3PDsT+34noimQiDn4cWJKZ6c3gavdJzxiSfLxzHrVXqrqQNJhF i1fggPkVItnRGWVR1SxsD5k/5DuQQvsbsVhNAoz5/jLxkciJXcKqd1YNYr30kQwdbDDAsmUq2aV Y9SfSsJVOse9ejV/f8Ff8CIvl X-Received: by 2002:a17:907:3c81:b0:77a:327a:815f with SMTP id gl1-20020a1709073c8100b0077a327a815fmr54564487ejc.422.1667931363325; Tue, 08 Nov 2022 10:16:03 -0800 (PST) X-Received: by 2002:a17:907:3c81:b0:77a:327a:815f with SMTP id gl1-20020a1709073c8100b0077a327a815fmr54564478ejc.422.1667931363176; Tue, 08 Nov 2022 10:16:03 -0800 (PST) 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 t18-20020a1709063e5200b007a62215eb4esm4992460eji.16.2022.11.08.10.16.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 10:16:02 -0800 (PST) Message-ID: Date: Tue, 8 Nov 2022 19:16:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 0/3] Check enumeration before MSR save/restore To: Pawan Gupta , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Pavel Machek , Andrew Cooper , degoede@redhat.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com References: Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 All, On 9/13/22 01:38, Pawan Gupta wrote: > Hi, > > This patchset is to fix the "unchecked MSR access error" [1] during S3 > resume. Patch 1/3 adds a feature bit for MSR_IA32_TSX_CTRL. > > Patch 2/3 adds a feature bit for MSR_AMD64_LS_CFG. > > Patch 3/3 adds check for feature bit before adding any speculation > control MSR to the list of MSRs to save/restore. > > [1] https://lore.kernel.org/lkml/20220906201743.436091-1-hdegoede@redhat.com/ > > Pawan Gupta (3): > x86/tsx: Add feature bit for TSX control MSR support > x86/cpu/amd: Add feature bit for MSR_AMD64_LS_CFG enumeration > x86/pm: Add enumeration check before spec MSRs save/restore setup What is the status of this series ? To me this seems like a sensible way to solve the problem which I reported and other similar problems... Regards, Hans