Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5955719rwn; Mon, 12 Sep 2022 17:58:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ju/aN9W5mytxu8i7hibymr6dmtqSVGZCgF5lDeWFcS5lkvP/1k5v3na2Cpr5wszXXDEIy X-Received: by 2002:a05:6402:4019:b0:44e:e530:30f4 with SMTP id d25-20020a056402401900b0044ee53030f4mr24727037eda.183.1663030713194; Mon, 12 Sep 2022 17:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663030713; cv=none; d=google.com; s=arc-20160816; b=NU/Rdp0bK2vzkI2ceovYqWXDj5is2SNMhUqYIGreBYkGxMOH8LaIDCiUxZdnD1djOW DbwYqHQ0ewGyDqFHEdASG5nB+yhuIFmz7Y9HsfU1BgpsEYJc4H5nAk94hz+TxhzkndKR jd/EshPhoRnQpT8I7v/QwYUFRfndWyyEa8vL5TRI1GYoLPuAcXPoDF6t9FYp2IlfhDTa HFPWwtgtGE3f1H9Q1+sRezbtk/NRJpucwP7iNo5XEIVhhGvgSRpj6+fnxN2JDva2YWAq S9lBhhojBnWeX9reSxk3pOqL7LnB5CbAKOYdVAMNffHzJxilp1XmQy9+80c7OA7FW8SS q0hw== 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=LKoxxoyzyjztsU4IdMn0GyiITXsrNfoKB+KCOFxtaOU=; b=xE/n4zhXEsZAAw0lUf4nB52BVrIlSgnJX5XE/63kqEFgpiPKWygrgqsJw3N8doNfgp DuJD/vi0yXkl0eemzR9bDhwO5lkqMnDw18ifPvUNZ1ddZTtKz/3d+iDfL6/YSxuse47j ahIVLBsGIzdkzwxP975QPsqAO0Ouni+FquooIvtCg8nNYXW1WTViAUYpt1KSdLEzig+d O5162hwmiLOIzJ0xQxf3Q2Ql53SdvH6sXLvsSMF6gzAVAoItvx9flS/gxJ9f2gRiHWST WJ2z6w1C6PKvtKtXlGB3bCt1h6TDof2FEzLzqWUJ85RRx2eTrYMMb3kZ6oANttzZIxHl YjEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="RJ/WaLkL"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a170906504800b0072ef52514f6si7364880ejk.629.2022.09.12.17.58.07; Mon, 12 Sep 2022 17:58:33 -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=@intel.com header.s=Intel header.b="RJ/WaLkL"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbiIMAu7 (ORCPT + 99 others); Mon, 12 Sep 2022 20:50:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiIMAu4 (ORCPT ); Mon, 12 Sep 2022 20:50:56 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1451EC41; Mon, 12 Sep 2022 17:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663030255; x=1694566255; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2Iv/g7byxZbzJva06wgZTQxsrYf7vHQYkFAE98ZRf4s=; b=RJ/WaLkLQVq/ahIwe/UVP5FS75HaU60YSrDlhZ/qg0Ddqs/1iUksKtv2 0y8D8Exr54q4FTF1Dbb7ZB/aAyngZZyWCJ+/+LigYUkm7PYvwB1tBJBeU X43B8l0LfAkkXFg6FUeRMV0xWWjSbBKMTCRqqk5MHhB42NA8iQCnDwAfr OY/1fcbuRNKzJrRVB9o3bMrJqKpCVzqOAO5C86k26c9++w2SC17lVZuZO HlWaDSKdZk2UkFcsUzSJcXdS+BbvpThXch7rzjpUkebs4B3pd39qAI2tg vWOvRQMMPpxVm3ClwaVr0JPaGDI8xIrCU/mnOQBIk8rBYJNRGqWTDwIB+ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="298007584" X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="298007584" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 17:50:55 -0700 X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="649458540" Received: from sho10-mobl1.amr.corp.intel.com (HELO desk) ([10.251.9.78]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 17:50:54 -0700 Date: Mon, 12 Sep 2022 17:50:53 -0700 From: Pawan Gupta To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Pavel Machek , Andrew Cooper , hdegoede@redhat.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com Subject: Re: [PATCH 0/3] Check enumeration before MSR save/restore Message-ID: <20220913005053.vk7qmhr6tqqynags@desk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 On Mon, Sep 12, 2022 at 04:38:44PM -0700, 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/ Added the correct email-id of Hans de Goede .