Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2697372rwi; Tue, 1 Nov 2022 10:35:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46zpA6fo5w7XrgP3/uiXpZ5nA+gnlJJTf3q72TvRmniLSjY9f1ZhE6wn6fT7XeN3qIQwJZ X-Received: by 2002:a17:902:ebca:b0:183:d123:e2a7 with SMTP id p10-20020a170902ebca00b00183d123e2a7mr20753605plg.105.1667324155525; Tue, 01 Nov 2022 10:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667324155; cv=none; d=google.com; s=arc-20160816; b=NPL3d3knDPryZo7j2r9iGQcsWajcOzTme8keZKIb+94twtQrWPMPSly5svUwFh4O7w hJ2853WWXYw/sHmWQyQkYJDGDOh8Dm4yXWR8pmGqKmi0ikx3YbilLz2WUsyVxzkPxKIQ OurQIqpl9Fn+xUA5OR9C4Ulr+QX/sMb21R9mPaaeuNy/szNN5o/RnDyxLp2z5VbWMGmK CGs0G/IXkjyciGDfb6DxogmwdnxzcgXeEe6Iapi2ei3aVlnXghJ/miyD71Id9pjQBKkM tLxE6YLpycIip8MiXg5/K2JIJkie92crUBhcCV4AjRBRLgI0I2f3McA9o7Hw61MxZkw6 Bn+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:from:subject:dkim-signature :dkim-filter; bh=bWL2DdT42G4iphUgFrlIZ2M6RpV81Aj/se5dxpx2cQw=; b=DdBLM5N5RY/8sgAHUhwWhQGJbzFa+8BTW61JP7HlKOxbxHh8L4kT4mJt0ULIdt8cDb lKL+ntXNMy70EmAAVUITFW1byitu8wu/R7d3zEVfkqSRLZPSFRDtoiL9N4v22JK0S8Kf s2SHe3BaZwT2rbG/B4NQ2R2eIY/eiuD0i7lfyOUFAFc1VK6N8mR7ksluZnxr961bbiaE ct3lmB2ISdngV2NLH4+zeq+oitfm/9rUV1jeetQNzAKCtNt6XpQ2E+8zXRAoJwGsbim4 2QF5fNPBbwy+UwPTWJz8KlNAzGigDEriW3bCuz2Zs9+B/OL3/a9bMJosxqIFR3Sj4PWJ TZiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=VPx0jo0t; 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 m5-20020a656a05000000b0046086f8f5d0si16921522pgu.537.2022.11.01.10.35.42; Tue, 01 Nov 2022 10:35:55 -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=VPx0jo0t; 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 S230000AbiKARbC (ORCPT + 96 others); Tue, 1 Nov 2022 13:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiKARbA (ORCPT ); Tue, 1 Nov 2022 13:31:00 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DAE27B86A; Tue, 1 Nov 2022 10:30:59 -0700 (PDT) Received: from skinsburskii-cloud-desktop.internal.cloudapp.net (unknown [20.120.152.163]) by linux.microsoft.com (Postfix) with ESMTPSA id 8138B205D3B7; Tue, 1 Nov 2022 10:30:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8138B205D3B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667323859; bh=bWL2DdT42G4iphUgFrlIZ2M6RpV81Aj/se5dxpx2cQw=; h=Subject:From:Cc:Date:From; b=VPx0jo0tRj1ouu7vyKrxFK8xenm3D8WH15JFEWvZsg2qZlYVW1JikTmgiOVOhe/Nj kNXDPFgofEG0uMZbG0QAxEsCOQT1KsDN5hB8kxOChPay3apxRsyo7F4mNXg/jn68mj A/0LCzpaPGzTplBa1uP5XSsn2DV9ZnfjY0LkFIfc= Subject: [PATCH 0/4] hyper-v: Introduce TSC page for root partition From: Stanislav Kinsburskii Cc: linux-hyperv@vger.kernel.org, Daniel Lezcano , "K. Y. Srinivasan" , Andy Lutomirski , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Dexuan Cui , Thomas Gleixner , Wei Liu , Borislav Petkov , Dave Hansen , Stanislav Kinsburskiy , Haiyang Zhang , linux-kernel@vger.kernel.org Date: Tue, 01 Nov 2022 17:30:59 +0000 Message-ID: <166732356767.9827.4925884794177179249.stgit@skinsburskii-cloud-desktop.internal.cloudapp.net> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-18.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,MISSING_HEADERS, 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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series does some cleanup and precursor changes to the hyper-v clock source and introduces support for TSC page based clock in root partition. Hyper-V root partition requires kernel to map the page, specified by the hypervisor (instead of provide the PFN to the hypervisor like it's done in guest partition). The following series implements... --- Stanislav Kinsburskiy (4): drivers/clocksource/hyper-v: Introduce a pointer to TSC page drivers/clocksource/hyper-v: Introduce TSC MSR register structure drivers/clocksource/hyper-v: Use TSC PFN getter to map vvar page drivers/clocksource/hyper-v: Add TSC page support for root partition arch/x86/entry/vdso/vma.c | 7 ++--- arch/x86/hyperv/hv_init.c | 2 + drivers/clocksource/hyperv_timer.c | 51 ++++++++++++++++++++++++++---------- include/clocksource/hyperv_timer.h | 7 +++++ 4 files changed, 49 insertions(+), 18 deletions(-)