From patchwork Wed Jun 10 05:32:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kelsey Skunberg X-Patchwork-Id: 1306463 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49hbHT5N2wz9sSS; Wed, 10 Jun 2020 15:33:08 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jitMD-0000vb-NY; Wed, 10 Jun 2020 05:33:01 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jitMB-0000vB-Bj for kernel-team@lists.ubuntu.com; Wed, 10 Jun 2020 05:32:59 +0000 Received: from mail-oo1-f69.google.com ([209.85.161.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jitMB-0005IO-04 for kernel-team@lists.ubuntu.com; Wed, 10 Jun 2020 05:32:59 +0000 Received: by mail-oo1-f69.google.com with SMTP id t140so587807oot.8 for ; Tue, 09 Jun 2020 22:32:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FMI02ckigAWQ0b9v7MZl1Ye48EMUwhwWAhDCZvpdmGo=; b=hKW6XRXbG3P7HQLdBCsg3BE7W4SzlXELnC5LGbP/JzfXHhwRoMInDsIwXKiahvrWJV SJGGzAPUyVqMDb9bDn+yA7J+X4w63aslMRaMGb2VxFVAAloet1naXt0mIl7YQkTVQLsM uOr8v56qfI9dmzwkDlYWamsNYqRXpQZnECn0k+qbZIE7aGWLRGOp6MkDojo3bp181Zxr fTMOO/1mQpKUdN3qa/+t9yjBGMciU9EeD1DRYRyDIXeJnnxifYUCSQuz5TNc6aFJPSK/ qHPO4+vCpzpN2o1CPd+ocXLPq9c0WLLlfl0N3DBBzdoO8VVt6pTtGKLYQ9A6bNLYOxa0 /rbQ== X-Gm-Message-State: AOAM531s2rYoqYIyvkJCNMzhneaiaBEIjyrx+oeYy88P1Oq/3SPmITH6 UdAbpjanu3aI++wqCl+K8dpvI1N+lERDTjrfrjhBUYVtUaaXA4eqJaVXb1f5aCSbRmojXzsvD/1 pgQTG4L76DjuG+40PqdMpuLgDo72CbZ5XUvMdysnITg== X-Received: by 2002:a9d:22aa:: with SMTP id y39mr1333207ota.76.1591767177818; Tue, 09 Jun 2020 22:32:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/R7bCZZ5Z4x9ELRuqBOtOyAjS0+WGOEbiHXT95fLdukvzh5I9SLWWmzK6C9OkwY4N2DfQWw== X-Received: by 2002:a9d:22aa:: with SMTP id y39mr1333188ota.76.1591767177465; Tue, 09 Jun 2020 22:32:57 -0700 (PDT) Received: from localhost.localdomain (c-73-243-191-173.hsd1.co.comcast.net. [73.243.191.173]) by smtp.gmail.com with ESMTPSA id w185sm3696583oiw.14.2020.06.09.22.32.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 22:32:56 -0700 (PDT) From: Kelsey Skunberg To: kernel-team@lists.ubuntu.com Subject: [focal:linux-azure/eoan:linux-azure][PATCH 0/2] LP#1875467: Enable invariant TSC support Date: Tue, 9 Jun 2020 23:32:53 -0600 Message-Id: <20200610053255.68140-1-kelsey.skunberg@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1875467 Microsoft would like to request two commits in all releases supported on Azure. These commits benefit SAP workloads. These requested commits will enable support for Invariant TSC in Linux guest VMs. The invariant TSC means that the TSC continues at a fixed rate regardless of the C-state or frequency of the processor (as long as the processor remains in the ACPI S0 state). These patches will allow guests to access the HvSyntheticInvariantTscControl MSR and set bit 0 of this synthetic MSR, which then enables the InvariantTSC feature. After setting the synthetic MSR, CPUID will enumerate support for InvariantTSC. The following two commits enable support: 9e0333ae38ee ("clocksource/drivers/hyper-v: Set TSC clocksource as default w/ InvariantTSC") dce7cd62754b ("x86/hyperv: Allow guests to enable InvariantTSC") Clean cherry-pick for both commits. Andrea Parri (2): x86/hyperv: Allow guests to enable InvariantTSC clocksource/drivers/hyper-v: Set TSC clocksource as default w/ InvariantTSC arch/x86/include/asm/hyperv-tlfs.h | 5 +++++ arch/x86/kernel/cpu/mshyperv.c | 7 ++++++- drivers/clocksource/hyperv_timer.c | 12 ++++++++++-- 3 files changed, 21 insertions(+), 3 deletions(-) Acked-by: Stefan Bader