From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78E2DFA373D for ; Thu, 27 Oct 2022 10:03:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234518AbiJ0KDl (ORCPT ); Thu, 27 Oct 2022 06:03:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234283AbiJ0KDS (ORCPT ); Thu, 27 Oct 2022 06:03:18 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DCDF8BCBA; Thu, 27 Oct 2022 03:03:13 -0700 (PDT) Received: from anrayabh-desk (unknown [167.220.238.193]) by linux.microsoft.com (Postfix) with ESMTPSA id F007A210D86A; Thu, 27 Oct 2022 03:03:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F007A210D86A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1666864993; bh=pn5m/fsuZt2o/sMJ3Kn65n/0LQdWBVSALoeLYn13kis=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BThGiM/wSe52io/Na6nHbCaIO+y+/fTPYtARe06SNx7lqq/Albe4ZBQtIfdGy5UWQ wtwLuEnHqfslFG8LwSBUtlpUbdD5gid4c3igIcQ0h7V4Ojd2SzhPVRDZ9XesVShyoJ SD++xnCACEu8BRi7ZB8IzqtyTfnR1oGmcvOd6CX8= Date: Thu, 27 Oct 2022 15:33:03 +0530 From: Anirudh Rayabharam To: "Michael Kelley (LINUX)" Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "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" , "kumarpraveen@linux.microsoft.com" , "mail@anirudhrb.com" Subject: Re: [PATCH 0/2] Fix MSR access errors during kexec in root partition Message-ID: References: <20221026134715.1438789-1-anrayabh@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Wed, Oct 26, 2022 at 02:57:58PM +0000, Michael Kelley (LINUX) wrote: > From: Anirudh Rayabharam Sent: Wednesday, October 26, 2022 6:47 AM > > > > 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 > > Could these two patches be sequenced in the opposite order, to avoid the > need to change the TSC code in hyperv_cleanup() twice? The new > data structure for the Reference TSC MSR and clocksource driver changes > would be in the first patch. Then the second patch would update > hyperv_cleanup() and could use the new data structure. I just sent a new version with the ordering you suggested. Thanks, Anirudh. > > Michael > > > > > 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