Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3416161rwb; Mon, 5 Sep 2022 11:13:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6g6cQrA5cxxUh/gRPWdYKjqoBKLndxpxmFloBkqcL2VWKDdaHl/iBU7hxeJzynqR5LkLCC X-Received: by 2002:a17:90a:4d8d:b0:1fa:9cc6:3408 with SMTP id m13-20020a17090a4d8d00b001fa9cc63408mr19988809pjh.245.1662401638619; Mon, 05 Sep 2022 11:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662401638; cv=none; d=google.com; s=arc-20160816; b=p7NaHeJAWQvoLW/9MGiDNap9cqn6YhfhMCV1uG661uN9WsKcnEDECQ5lNNwpjHZjs1 F6fPxONhpHBqQeVzshFSgf3/YpR8d5gwnR5Rt1BG9X+uLpaOCV51o+Pnqh42fNToiNIR vbXHBqG70MxW1pFtbixtPyrBu+0k7npqCrIc27RXxGgIAobb6HDBeKAY4EYcD+XtaAok ddiUf/AgrdcC3EiyJZQOwMAvcotDGQYUBQHFyMvTzOXWF4SEZyXBZk7XBBl5fQsaECwk 1v/huqS5chp4ih20Lq+eMHTXfhOt75OmW/yMHTZtpjmc7Prchoibt03h8AD9eGM4ogA/ 5KDw== 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; bh=d9TAneKl/IB22ze9RSEc+xm4pxhpst3mt3s1A5vkCeA=; b=K2d7f8rdfEBjCowfdNJKHaHaYG6NNUQtVh0uWKJq2nDz2cYgIuLXtEotjUhScFXPc+ ScoNIimmmkRNrFG3k0I6OgPoT6IpSvhgFv6wgc/QIiIOde2gzGeQlDDeXwzE0RPhXlEH 2xLZux8qubN3IyrnlmdB8m6f88FYjFIDIj+4QFei8QA5izPKp8n1Quwq7/m75FiIB2ow 1PEEKJNRdf8Iu06tKmzyKS4uzCLPQvejt+gtetaOA4dyISDD8ckbj7UUcMC72DP6x8Gv 7ZLQu9WmIEQeQJie4nPh9xVWWjAkIDGDTDzRcl07vVdg9LRwPAR+buIsgX17Chttn7PO wRLA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 66-20020a630045000000b0041c8dfb29f0si11160289pga.705.2022.09.05.11.13.43; Mon, 05 Sep 2022 11:13:58 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237618AbiIERG5 (ORCPT + 99 others); Mon, 5 Sep 2022 13:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236472AbiIERGy (ORCPT ); Mon, 5 Sep 2022 13:06:54 -0400 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC82A4BA6A; Mon, 5 Sep 2022 10:06:53 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id d5so5549693wms.5; Mon, 05 Sep 2022 10:06:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=d9TAneKl/IB22ze9RSEc+xm4pxhpst3mt3s1A5vkCeA=; b=5bIMzqJEYi475D5LBMMSqSYZWu1Bs/zkU1jfD505MiGk4fqeB1VkGY9sdD86iLI79S Wpnedj9yDrJ441+76qhlXHrFFSy5gGv0ry0u9VrZFZKEkuKrMhc3WnRRf/AZ45uX/YK9 C8h4nGFpkwemI+mP4TQ9D54VqtS1np4deg7aKNubr2chOeM8DFXeSiPpiMks9NWoMtWi IQC/vZ16wUmFo8OAqgSNwzUe8Z5HH//Bhzb473vl47koR+3s+i8rCOt0jeLqhjDMH8fh kUhVvjFFHv/pwI/b0MuG7Q24njc84kh6MSnwfZE6ZlX7HVSVBxshpItLKqg/jHrpVUkY T4TQ== X-Gm-Message-State: ACgBeo3GtLCoicLLBw0VCnD7ry0sDZvGuCbNDLNme7+A6/e5Y76SNiqb OsVfT8PNwUQBSBPnvqgXG8E= X-Received: by 2002:a1c:3584:0:b0:3a5:fb0e:102e with SMTP id c126-20020a1c3584000000b003a5fb0e102emr11618897wma.105.1662397612187; Mon, 05 Sep 2022 10:06:52 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h6-20020a05600c350600b003a541d893desm12386483wmq.38.2022.09.05.10.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 10:06:51 -0700 (PDT) Date: Mon, 5 Sep 2022 17:06:47 +0000 From: Wei Liu To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, Paolo Bonzini , Sean Christopherson , Wanpeng Li , Jim Mattson , Michael Kelley , Yuan Yao , Maxim Levitsky , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Liu Subject: Re: [PATCH v6 02/33] x86/hyperv: Update 'struct hv_enlightened_vmcs' definition Message-ID: <20220905170647.ky7rf5ypmqwxb7wx@liuwe-devbox-debian-v2> References: <20220830133737.1539624-1-vkuznets@redhat.com> <20220830133737.1539624-3-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220830133737.1539624-3-vkuznets@redhat.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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, Aug 30, 2022 at 03:37:06PM +0200, Vitaly Kuznetsov wrote: > Updated Hyper-V Enlightened VMCS specification lists several new > fields for the following features: > > - PerfGlobalCtrl > - EnclsExitingBitmap > - Tsc Scaling > - GuestLbrCtl > - CET > - SSP > > Update the definition. > > Note, the updated spec also provides an additional CPUID feature flag, > CPUIDD.0x4000000A.EBX BIT(0), for PerfGlobalCtrl to workaround a Windows > 11 quirk. Despite what the TLFS says: > > Indicates support for the GuestPerfGlobalCtrl and HostPerfGlobalCtrl > fields in the enlightened VMCS. > > guests can safely use the fields if they are enumerated in the > architectural VMX MSRs. I.e. KVM-on-HyperV doesn't need to check the > CPUID bit, but KVM-as-HyperV must ensure the bit is set if PerfGlobalCtrl > fields are exposed to L1. > > https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/tlfs > > Signed-off-by: Vitaly Kuznetsov > [sean: tweak CPUID name to make it PerfGlobalCtrl only] > Signed-off-by: Sean Christopherson Acked-by: Wei Liu