Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp313378iog; Wed, 15 Jun 2022 02:49:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBiS+1QVcgOpWWBj5kCdlBSNBXYYXqCfwGQysEYQ7pNymLf8tC4LZFSalr8IbKbZ6chfe2 X-Received: by 2002:a63:4418:0:b0:3fd:af26:a795 with SMTP id r24-20020a634418000000b003fdaf26a795mr8072303pga.331.1655286574039; Wed, 15 Jun 2022 02:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655286574; cv=none; d=google.com; s=arc-20160816; b=aYScCtHUhbdHcqz4HM57j4epCTpQ5ELaGfg+lfGNpk+F2vwh30cuQm6HFYq74gn5S2 KEMux4NBAUVyhU1AIPI5BvyHW9475pwcWlPWehtDqiFaQs/55kj3piB6xhb+nN3jDBDf /4PHiUoHXZqceGeJzT9J2XaRoQ2QmZ8FDDgKXjsZ9qFvnTyID0Nk64rZPpXCbeoGz61Y 3jLn6PmzgogMVFM9jqx5/YGW4a9wh8ll+Uz2FMgy2ugN7NV9414HcvohEPtH4AgScJZV WLGDbf7k642E4AXY6P8MI0DlCx0kpTp3Ag1tX6XvgM7z/EAyOfYdU5UoW9yWLYHBHCLq HaCw== 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 :dkim-filter; bh=Fo6CSnNJRE/YjGZUQshS1lDdeF7gEOjNbUYnU0G63RU=; b=gC59cH+uiGvOlsdSNZd6VJQTbmgmC0KfRGftvfj7J4JhtO+poVFOd/aMziP+A8vaoI vdzfQBuZ5B0ok1wyUoVRsTfUQHEBdOHeB/3BX2EpFbg6zSwTKYP41ZvJq1ApCsyIS9hy 7EnXsJLlV2XBNHAj67WHQp+Fu/7qlkHJXKkiWoysPaCi46pxE7wuMXA71xzLDL6NaKuk /UxeB42HdFPbl7InrNYPmWmiBVjnfsO8cpv6+cnm04fB2d7mQ2WW+M/b/sncI6ycukB9 I8CXftSQ2sqLocn34XJsHTRGNTsZqTbdS8LxGZ4qNy6mWniqybMVFvPbb2XQ+3azM+iH jXXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=OnaD1ScM; 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 g3-20020a636b03000000b0040242c3b826si17085613pgc.865.2022.06.15.02.49.22; Wed, 15 Jun 2022 02:49:34 -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=OnaD1ScM; 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 S1344885AbiFOJBl (ORCPT + 99 others); Wed, 15 Jun 2022 05:01:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233619AbiFOJBi (ORCPT ); Wed, 15 Jun 2022 05:01:38 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 355E73466B; Wed, 15 Jun 2022 02:01:37 -0700 (PDT) Received: from anrayabh-desk (unknown [167.220.238.193]) by linux.microsoft.com (Postfix) with ESMTPSA id 3867620C3230; Wed, 15 Jun 2022 02:01:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3867620C3230 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1655283696; bh=Fo6CSnNJRE/YjGZUQshS1lDdeF7gEOjNbUYnU0G63RU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OnaD1ScM3O1zqniZALodPx0ED0jG6QR1ED06vK40uwFVVy0zVtA2Puo7eTETNo7lJ A2oCRhDaQpc8Y3RfIwyP9K6GrmtQxmU42b9laE3IGw37KnsfnuzeuCBT/YYcIxBn8L oe7BZvT7sHS7+mYNYukqkWqJ/xdjW3323GG9QdNQ= Date: Wed, 15 Jun 2022 14:31:25 +0530 From: Anirudh Rayabharam To: Paolo Bonzini Cc: Vitaly Kuznetsov , mail@anirudhrb.com, kumarpraveen@linux.microsoft.com, wei.liu@kernel.org, robert.bradford@intel.com, liuwe@microsoft.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ilias Stamatis , Maxim Levitsky , Sean Christopherson Subject: Re: [PATCH] KVM: nVMX: Don't expose TSC scaling to L1 when on Hyper-V Message-ID: References: <20220613161611.3567556-1-anrayabh@linux.microsoft.com> <87sfo7igis.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE,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 On Tue, Jun 14, 2022 at 07:20:34PM +0200, Paolo Bonzini wrote: > On 6/14/22 14:19, Vitaly Kuznetsov wrote: > > The latest version: > > https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/datatypes/hv_vmx_enlightened_vmcs > > > > has it, actually. It was missing before (compare with e.g. 6.0b version > > here: > > https://github.com/MicrosoftDocs/Virtualization-Documentation/raw/live/tlfs/Hypervisor%20Top%20Level%20Functional%20Specification%20v6.0b.pdf) > > > > but AFAIR TSC scaling wasn't advertised by genuine Hyper-V either. > > Interestingly enough, eVMCS version didn't change when these fields were > > added, it is still '1'. > > > > I even have a patch in my stash (attached). I didn't send it out because > > it wasn't properly tested with different Hyper-V versions. > > > > -- Vitaly > > Anirudh, can you check if Vitaly's patches work for you? I will check it. But I wonder if they fit the criteria for inclusion in stable trees... It is important for the fix to land in the stable trees since this issue is a regression that was introduced _after_ 5.13. (I probably should've mentioned this in the changelog.) Thanks, Anirudh. > > Paolo