From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44E1FC00144 for ; Mon, 1 Aug 2022 08:55:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230290AbiHAIzG (ORCPT ); Mon, 1 Aug 2022 04:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbiHAIzE (ORCPT ); Mon, 1 Aug 2022 04:55:04 -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 0388E3AE60 for ; Mon, 1 Aug 2022 01:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659344103; 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=BxiaabKGDEEtXA0mz5czXoc0qeEtxLpaIEZjWv8Aze0=; b=f+LDhGAZf44t1XL1AjVrqrSLlDcZ+EUPzOCxOYMOkSRYJJKrqqZco5k+gqOoBVt51SZZio Juz3seJQ292Z80wvF35ioasgsbVVeFLN/75hzdCjpYJFjZaIHZpuxkQLVXvg38krb3OPS7 qa+fOgqDcvwvAPf6Wz9jyDaO8yaJmAY= 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-480-PVw37Qg1OSeCy_Tmtvq2mg-1; Mon, 01 Aug 2022 04:54:57 -0400 X-MC-Unique: PVw37Qg1OSeCy_Tmtvq2mg-1 Received: by mail-wm1-f72.google.com with SMTP id c189-20020a1c35c6000000b003a4bfb16d86so1807285wma.3 for ; Mon, 01 Aug 2022 01:54:57 -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=BxiaabKGDEEtXA0mz5czXoc0qeEtxLpaIEZjWv8Aze0=; b=cBRalIZ79h2rsHa2MTJhjJCN5xv5pd1kUSO/tVIkqItVgactKWh1ohPWUKOsBx7KNG T/0znLYNnPaUGXDe8sfLrVaufjuTUE+g984vr9GlzN9e6srg4gTMOiBkJc5BO3sEzJwj 58lgKBtDy7gfWZtWQs1TZULsZ8iOdZmM6/F9NDAM9ZaolGOAsVIEBjK+77KOjN43LKFp GLkz6A6Gc6JSi2oDMRBpPKwCXFDZAc04LwOEBMFAWOgI4aUPP6UKdgFd45zDOlZm98UL baPEckexciwj62BwowokLLmRTJzZkT5ahxR14nEa6QVrehWQuGoFax/pQQgV5o+ALOlE h/aA== X-Gm-Message-State: AJIora9EE+Q8kS59aqI3dGzz4SWAVXKeHa48Ewm44LwYF3OYvEF7/yTt IsNkWUE66T2MVLp0LlcRXy6j5irbEIjh5knBcmgJNjgaMSEt/qXqzQOhfpn2WkcmX0fplFxDp0U mT/89atFI+QzVH0vDt0x4V2+QHesrvuE4tv+/hR3M1MPJulaj/fuVZMeno4J6gzc6e7ZHGF8MWr cN X-Received: by 2002:a1c:2584:0:b0:3a1:9de1:f2cd with SMTP id l126-20020a1c2584000000b003a19de1f2cdmr9827308wml.182.1659344096711; Mon, 01 Aug 2022 01:54:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPXHZnEm7WMbonZJJdCYbmjiBsmz6Iyba+hidulBSCOoByBRhmsHlJYAmd1cCIvqAHDv/xhA== X-Received: by 2002:a1c:2584:0:b0:3a1:9de1:f2cd with SMTP id l126-20020a1c2584000000b003a19de1f2cdmr9827284wml.182.1659344096428; Mon, 01 Aug 2022 01:54:56 -0700 (PDT) Received: from fedora (nat-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id p3-20020a5d68c3000000b0021ee65426a2sm11153544wrw.65.2022.08.01.01.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 01:54:55 -0700 (PDT) From: Vitaly Kuznetsov To: Paolo Bonzini , Sean Christopherson Cc: kvm@vger.kernel.org, Anirudh Rayabharam , Wanpeng Li , Jim Mattson , Maxim Levitsky , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 09/25] KVM: VMX: nVMX: Support TSC scaling and PERF_GLOBAL_CTRL with enlightened VMCS In-Reply-To: <62ac29cb-3270-a810-bad1-3692da448016@redhat.com> References: <20220714091327.1085353-1-vkuznets@redhat.com> <20220714091327.1085353-10-vkuznets@redhat.com> <48de7ea7-fc1a-6a83-3d6f-e04d26ea2f05@redhat.com> <870d507d-a516-5601-4d21-2bfd571cf008@redhat.com> <62ac29cb-3270-a810-bad1-3692da448016@redhat.com> Date: Mon, 01 Aug 2022 10:54:54 +0200 Message-ID: <875yjc2vj5.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paolo Bonzini writes: > On 7/29/22 00:13, Sean Christopherson wrote: >> The only flaw in this is if KVM gets handed a CPUID model that enumerates support >> for 2025 (or whenever the next update comes) but not 2022. Hmm, though if Microsoft >> defines each new "version" as a full superset, then even that theoretical bug goes >> away. I'm happy to be optimistic for once and give this a shot. I definitely like >> that it makes it easier to see the deltas between versions. > > Okay, I have queued the series but I still haven't gone through all the > comments. So this will _not_ be in the 5.21 pull request. > > The first patch also needs a bit more thought to figure out the impact > on userspace and whether we can consider syndbg niche enough to not care. (Sorry for delayed replies here, I'm back from vacation now) The first patch is not a requirement for the rest of the series, we can discuss it separately. I, however, think that we can just keep checking HV_FEATURE_DEBUG_MSRS_AVAILABLE in hv_check_msr_access() to be compatible with existing QEMUs and make QEMU expose both HV_FEATURE_DEBUG_MSRS_AVAILABLE and HV_ACCESS_DEBUG_MSRS unconditionally when syndbg feature is enabled as we know that missing HV_ACCESS_DEBUG_MSRS is just a bug. I don't think we actually need to be so picky and support VMMs which want to set 'syndbg without access to it' and 'access to syndbg without syndbg' use-cases. All-or-nothing is likely good enough. -- Vitaly