Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1674066iog; Tue, 14 Jun 2022 10:38:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v88w+3B8TPgE7dniK0gFbTa7jM7dg3laIMluMmhRYUcPrOV9dNnoiwjQB9a2HYWXp5UBsn X-Received: by 2002:a05:6402:b09:b0:42d:bd80:11ac with SMTP id bm9-20020a0564020b0900b0042dbd8011acmr7561643edb.244.1655228300589; Tue, 14 Jun 2022 10:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655228300; cv=none; d=google.com; s=arc-20160816; b=whzNZ+N5ZN9NtGdUpcUzyZyDJ/bSfJwLb1ZW3c0C9t7cZNCvL7rX2w2HtAlRoFAHGw Z+aTytoyqZ4KAym9VCXg5QYds4axSiQzFvnZr5aFLzzkMyIz3CjKsyMcScgrCjWi8/9X 60BmxA4JpzAR9TpZI8GdjE+8Tu7AMVYcre2ZNlrw3Hw0YEzDd1xNmbD/TQU4J9bZQLic pJrSiBuLVxM77s8JnpNTrOXB0UglAAkJMqi4UkX4mVBpfECTQTakiGI33KujMbcuhPu3 oUqJw8hg/gp9wLbmn2aKoISmcUw7xREG9Adwtm8/JA8jKzc7vUUU9SE0+r3E5LBreLl9 Fg1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kqYew11KNAfaBqOsl+Q8igMswKugDrXrgAM/kefOpxk=; b=SKcVmQVDoimXs10TyBy+15Z6zAdY4mH8wrDfpKdUUbVSyYumMbs17oeayO0mubBH9t UY5CryjoPbJKXysv4oDRdUPmZaUDMFcgVZu0jRBnO4hFCIGmdwwL/r7P5cbx4KOwPo/j rsfoxw53498gSGlj9KEy4EqPn/ZkexILs1uuQbXEmDNyqoCKGL6WEW/bfJkM2l/aYJqe AMiYL3D5z+7gyBTli0/fCugY/9nArwYclxFEs+ZD8p4t5QiKZeSY1ZNnWCLWmh4nd4LC fU8YzBsUuKkxhrKVSVWLsGYGXeLRvXEyOLDJ4XzGqI/VCMppID5gqZAzx6FN9JDPJK6E OMWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CjOHLg3K; 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 g9-20020a056402090900b00434349b72c5si13770839edz.305.2022.06.14.10.37.52; Tue, 14 Jun 2022 10:38:20 -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=CjOHLg3K; 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 S1344398AbiFNRUr (ORCPT + 99 others); Tue, 14 Jun 2022 13:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344339AbiFNRUq (ORCPT ); Tue, 14 Jun 2022 13:20:46 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EAF9B2F670 for ; Tue, 14 Jun 2022 10:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655227245; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kqYew11KNAfaBqOsl+Q8igMswKugDrXrgAM/kefOpxk=; b=CjOHLg3KHZFjdmb5M8OlmIIe3GBWgLxINnzJqJTUAiqthOJyd9AeMsjA12HafcXtyEeFs8 2X79RtHVqq2bnlMNkzr1mu+tKwMQa7tOkgQ9nkGKKD+NHLrsg+obeE8esjHo757aQA096h xzzx6j3cZofVVDCCPzzu3gYhR1XvVzw= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-515-p30b8t1gNjCb1gCcd3SvUQ-1; Tue, 14 Jun 2022 13:20:43 -0400 X-MC-Unique: p30b8t1gNjCb1gCcd3SvUQ-1 Received: by mail-wm1-f72.google.com with SMTP id j31-20020a05600c1c1f00b0039c481c4664so4061946wms.7 for ; Tue, 14 Jun 2022 10:20:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=kqYew11KNAfaBqOsl+Q8igMswKugDrXrgAM/kefOpxk=; b=R0wpfVvnqJOZa1P9et1Xlr1kU00S9gINCt9j27PgRCplfHdcp6XJy7ckxzNbMO3RT4 k599mbH/SgmpfqLkLSJO0aYLGfJN/rHuCkKi3UBsYc1W1L+lHp0oGleDH79CgEEtGwWz zMouzGPQ5B5oJTAu36o6D76g/aYtEfC5CWmWqBB3N54e4DvNRa9HZw5y3++M7XdlDOks 4axOL4EIp3denNr36/9oHZ77th+4usXCv9kVGENItsVevmh7pIMKVCY06J4a/1hrTBkW eBqZyDLdtgu5Sg6NBAnEmX5cmMzmdg+PFfUxG7jiYZMWSlrFAVkKEZriTHLMDAyQADyu yP8g== X-Gm-Message-State: AJIora/0p67ESVetmftH4pLYa/+U4IzCutR4lj1WRTOJe/lzamPy1iMd 7/YBcY8EBkbDwy2RBqBlIrnMV0cutWQrNR7RJTiFjWNBPj1xFY9FrZhbswjz3drnj3W6dtqUXpw AJQW7D2wefU7rML+QpT733bVK X-Received: by 2002:a05:6000:2aa:b0:218:3d95:7278 with SMTP id l10-20020a05600002aa00b002183d957278mr5867297wry.503.1655227242593; Tue, 14 Jun 2022 10:20:42 -0700 (PDT) X-Received: by 2002:a05:6000:2aa:b0:218:3d95:7278 with SMTP id l10-20020a05600002aa00b002183d957278mr5867281wry.503.1655227242330; Tue, 14 Jun 2022 10:20:42 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id v13-20020a5d610d000000b0020c5253d914sm12639877wrt.96.2022.06.14.10.20.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 10:20:41 -0700 (PDT) Message-ID: Date: Tue, 14 Jun 2022 19:20:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] KVM: nVMX: Don't expose TSC scaling to L1 when on Hyper-V Content-Language: en-US To: Vitaly Kuznetsov , Anirudh Rayabharam 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 References: <20220613161611.3567556-1-anrayabh@linux.microsoft.com> <87sfo7igis.fsf@redhat.com> From: Paolo Bonzini In-Reply-To: <87sfo7igis.fsf@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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? Paolo