Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp314500iog; Wed, 15 Jun 2022 02:51:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1voE+KNXL57BF5Bf65lQFprtfv7f7CNx1uLwdJllw/gLS8IqfsjRhVOPo6okCR8yOVALla4 X-Received: by 2002:a17:90b:4d81:b0:1e3:33e9:6677 with SMTP id oj1-20020a17090b4d8100b001e333e96677mr9253235pjb.116.1655286665737; Wed, 15 Jun 2022 02:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655286665; cv=none; d=google.com; s=arc-20160816; b=sme5x13TeU6ntaLsK8DRQflyHBzoqXpoMYkBJuK23vkCQJaLOkxgbGURNnhPjyUDha NCQhcSbXVu2feM2RKc2qxMrpFHA8/DF1A097YIjTzG+t3dQkIXrYmxmuFlIwG0th9vCC cSIC2N7rEG1nc+4WQWNdDRTjSb4bo6SrzRYb2S6WMRbUFXGqRd/IxvlSnhl8DWM8bjWJ kQNiM0Q4uZZra+qHaagCQG/w/Fl6bcWxZibB5W0rG2z2Ic2HPJi3HxZxm9F6HHJxvcl3 ib4oN5DeLwJk074kODpuae6Nx0F9jFFakM6fNteDeRlAtvmFNTZ9/AhsLA/i5UEY8oMy x0zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=dNw/R51TWM4Lx/vPA0cEiIg3iaOBbrHMuRKSdvNKOs8=; b=ojM2BDVgnbz2PCOCqvH/R4aysKpn+ostKcLLjmWmafx1kntlNBQMW7GEa6L8bMnLxl DVhiQi6/2AD0ymZ/5k8pMAhj3PMDFjISBmOcBNsC9oB0Dl+S9pC6/aYVKT0dzP2aiSd5 rXKqHA3LcGZfZ38SuP+7a4m1AfQkmC3KHft3hkozSaBiTZZEninIAx3h/wL/9mmYlGhv vB+HVMyO9QAFgWsRQLrVcujp482XaBS2iURIPoTznaUDVpVVwUj0dd8oS5VIyZ2hzboD Q8tjyB/4bgf3+TTLPX/iGpRGkb//EzxRbra/Eb4hEu3qtqqw4Z0usu2eoBBXkXr9+k6F DP+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GT5zZUWv; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct19-20020a056a000f9300b0051c09f5253bsi14351477pfb.204.2022.06.15.02.50.53; Wed, 15 Jun 2022 02:51:05 -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=@redhat.com header.s=mimecast20190719 header.b=GT5zZUWv; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348261AbiFOJhE (ORCPT + 99 others); Wed, 15 Jun 2022 05:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348204AbiFOJhC (ORCPT ); Wed, 15 Jun 2022 05:37:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B2003A181 for ; Wed, 15 Jun 2022 02:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655285821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dNw/R51TWM4Lx/vPA0cEiIg3iaOBbrHMuRKSdvNKOs8=; b=GT5zZUWvkDKUg4mSLKbpi41KUtNhp+iFWiIG4fLYLjH28y90wUY3Ui+prPylaFPPVKl+L0 wXRa1TS2i5mc/7FQgg+jYYDOD8kBUxbjEqXqm6yC/HHHD3uN03+MEqZD8UQ2J7AvRWdHK6 aOyVTPsxvrRTBKjRm6bGpPmMa64mmA8= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-10-IXrBLdLpMyWYS5AV6sqTVA-1; Wed, 15 Jun 2022 05:36:59 -0400 X-MC-Unique: IXrBLdLpMyWYS5AV6sqTVA-1 Received: by mail-wr1-f72.google.com with SMTP id m18-20020adff392000000b0021848a78a53so1685344wro.19 for ; Wed, 15 Jun 2022 02:36:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=dNw/R51TWM4Lx/vPA0cEiIg3iaOBbrHMuRKSdvNKOs8=; b=c1wGKQdmu4AZG4jj6bI2magj3SO4WtE1rJYLBnrFMyRyb4MkkVzfa4xBDN6kmEWoFX 2sqVqlpp42i0NNZIArhKo776zwkrjTzUDnxTE3GMETgrY/F231oxBAH39CHprAfYlflc sBYNHQF27YjiYvmiIxSFFh9TeXj2kSe6z459cTbtjSxEukJzjSaaQwzwef5B4vN9KSrs cMYFzIOrrM+cxN/5CTey2EC3/fQ7Gq/FrY+DMNBxeMLWy3/HFmREqHyMom+imwALkQ6I ySG5LTiTlEH4VeaiiGpqXQCioJFmzrYd9YfQC6tIBvYCScp3zuyU4J2ORUe/deHjZ4zG Rb1g== X-Gm-Message-State: AJIora+gIXvlZ4U8CXujgMODX9DFrGy9LLdCxCUfyHSouw9MnFFgPd+k 56lvo1sDEpBb+NCHrB9ujRdHsa5fv1x4MGF0MnocB4VjYYbAwrydSpadeU0yquxWQx6uj8DuyZc S7y6UWHIR/FXZnRfczXK1HoIX X-Received: by 2002:a05:6000:156c:b0:218:5f5d:9c61 with SMTP id 12-20020a056000156c00b002185f5d9c61mr9197821wrz.134.1655285818373; Wed, 15 Jun 2022 02:36:58 -0700 (PDT) X-Received: by 2002:a05:6000:156c:b0:218:5f5d:9c61 with SMTP id 12-20020a056000156c00b002185f5d9c61mr9197809wrz.134.1655285818176; Wed, 15 Jun 2022 02:36:58 -0700 (PDT) Received: from fedora (nat-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id c7-20020a05600c0a4700b003942a244f51sm1682638wmq.42.2022.06.15.02.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 02:36:57 -0700 (PDT) From: Vitaly Kuznetsov To: Anirudh Rayabharam , Paolo Bonzini Cc: 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 In-Reply-To: References: <20220613161611.3567556-1-anrayabh@linux.microsoft.com> <87sfo7igis.fsf@redhat.com> Date: Wed, 15 Jun 2022 11:36:56 +0200 Message-ID: <87mteei7yf.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Anirudh Rayabharam writes: > 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.) > Personally, I see no problem with splitting off TscMultiplier part from my patch and marking it for stable@ fixing d041b5ea93352. I'm going to run some tests too. -- Vitaly