Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp750449rwi; Wed, 26 Oct 2022 06:52:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/JBdJ1AvolrOZxRTZ9OyP7lVMrJ92DpX/g1KmgrH+GWNN7XoUtlxkyYsMY3kGZefas8oE X-Received: by 2002:a17:907:1c10:b0:791:a716:5089 with SMTP id nc16-20020a1709071c1000b00791a7165089mr34257211ejc.672.1666792328229; Wed, 26 Oct 2022 06:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666792328; cv=none; d=google.com; s=arc-20160816; b=eJXYOqheOc737BlR3uOfQgU9VUXxDRp3dogqtKGWo+jqMUzuXPvV1IJOaFfRvtQ6I6 YD6qgnF/L3uz/eQHM5ftiL1FAxDcRM2GxyMTMhu3hvnpf9m8gxquPJelP+/7Hmy/LEbb PXkiwNWhuq+z8Re0J7eRmQYJdf0N3fH5fpxr8PFM9nKnRndyOeaq7JVGczYNs8pDWPSu SlfS8Fwc8mcIHvNXnCRGtDUX1EWKbn1n5QsueqzRww5+NKCSg5cIyPyR9J105b+L4kTX 8EQJ9kMeu79HrBF5fvBYG4fqprDF895Y2MaRKYj7rAZDZzWjbHIVr3vpCigNjWK/dNfc YEgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=20Y+/UZbV3iqb1Srh01Ko1r/lDYgX7VA4Hx6huHxYAM=; b=PLVnz3PBNkat6mVicW6mu6aGXCxa02p8dAwztocCQEKEiwLhUhHk/3srx7xO6vzzgQ omovpSY6V/6n7tD6xy9FUVnCwUL/b0tY1rHeroV0Ea9Jn+Y5MzkJk315gTQeu32oXgiO 8DogRU+c1Es+2eTn1Ai5tVG6TIKfK6+vdVvkNHlryEmKPkAW3OvYYlLb6AcdGMbzsTi0 1emzDPhYT13fKqxdCEOyZIgX8vCmgKDn+QNhKPs1CZKvnzmBlGuUHEGzsMxbH+/QiSYr jO65i3+/NccAQ+r7BRy9zpaOHk89nZbfNPP8tXszciQxIONowOaLCYjCT5EfuyPMCXwO lS9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=mmO6qVa6; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd21-20020a1709076e1500b00791a6455597si5517080ejc.955.2022.10.26.06.51.42; Wed, 26 Oct 2022 06:52:08 -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=@linux.microsoft.com header.s=default header.b=mmO6qVa6; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233806AbiJZNsd (ORCPT + 99 others); Wed, 26 Oct 2022 09:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbiJZNsF (ORCPT ); Wed, 26 Oct 2022 09:48:05 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B6F29622E; Wed, 26 Oct 2022 06:47:56 -0700 (PDT) Received: from anrayabh-desk.corp.microsoft.com (unknown [167.220.238.193]) by linux.microsoft.com (Postfix) with ESMTPSA id 80FFB2109251; Wed, 26 Oct 2022 06:47:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 80FFB2109251 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1666792076; bh=20Y+/UZbV3iqb1Srh01Ko1r/lDYgX7VA4Hx6huHxYAM=; h=From:To:Cc:Subject:Date:From; b=mmO6qVa6s6H6SJRFSlCumPScWhScA0E9q+Hr95gnB7kvhIPvd4W0gVVhSZRUlBloU z0+M77hVu3mU8FBk2STM9vrRFEXV/fPJWB+czGAJCzbgOYcL6k06bj0XXfNSPG8u4A IFqgT9nBnnZeCxp+sNmUv5O1hJ865tMPaM6DVS4A= From: Anirudh Rayabharam To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, daniel.lezcano@linaro.org, Arnd Bergmann , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Anirudh Rayabharam , kumarpraveen@linux.microsoft.com, mail@anirudhrb.com Subject: [PATCH 0/2] Fix MSR access errors during kexec in root partition Date: Wed, 26 Oct 2022 19:17:13 +0530 Message-Id: <20221026134715.1438789-1-anrayabh@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fixes a couple of MSR access errors seen during kexec in root partition and opportunistically introduces a data structure for the reference TSC MSR in order to simplify the code that updates that MSR. Anirudh Rayabharam (2): x86/hyperv: fix invalid writes to MSRs during root partition kexec clocksource/drivers/hyperv: add data structure for reference TSC MSR arch/x86/hyperv/hv_init.c | 11 +++++++---- drivers/clocksource/hyperv_timer.c | 28 ++++++++++++++-------------- include/asm-generic/hyperv-tlfs.h | 9 +++++++++ 3 files changed, 30 insertions(+), 18 deletions(-) -- 2.34.1