Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1296222rwb; Thu, 22 Sep 2022 12:58:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ZfKJNAkZYK10491L0qSVotdHvxXFSqmiMzspH2QwF5q+HmJSuN6tsdvGgyRWqrYLpCxYZ X-Received: by 2002:a17:907:701:b0:780:2c44:e4dd with SMTP id xb1-20020a170907070100b007802c44e4ddmr4263787ejb.589.1663876715729; Thu, 22 Sep 2022 12:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663876715; cv=none; d=google.com; s=arc-20160816; b=ByGL6Kb54vzxeDpi7XtgC387BPIkbS55Iu9FdORdrxl6n1taci91TdNGuxDMELZuKr cwwLmK+inc+zMHZ34pin+o2Q7S6vYPosZr0DOFb/Cl5CMq7gsku58u8r0FP54ngyR6+7 8VkhZv0ttyY6DdFlaPIhmVAhU99a/X4/Mv6NVpaEejPJN7ZK8PVZAK8IpLLFQitohPsx SmgjxBI6Y7XaypAz2wInFKxDuE0KE24XiqVl6mlht+aecuTYobeXFXyqGMYTRi4nXNKo 9IpuNA3tNwK8JBVGpQFojFCQdCh2qsXPcETPERr+50JPLek+ixflTCzhCXUQiCd2IQNW oKqA== 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; bh=wMNXJ8tFxE5zdbCt/8NlY898zBIrwCziYNXTEkeFtOE=; b=Zc7Qko+vu54VV3AbGxqF4gUHzYTeuPXo4oALr+kiGuR4YIMtRqSTy/u4ntTS/EJTV/ vUnY4ghGp6PXQNBIBcs+TDft9LmzwT9xxbi3e5brXraVghvbtItHXjFy7wyxW3zAtwpC TvJhHe+z5o6tyhosuHSPgfzQg+R7sU6I2mrJ7DzWcZfqbqEAGoGzQUa7RCGPnqv+pTBR qcKyGKJOe2KZU9kyIIMKqSHmaPvVasWStBtyJrTJkUnAtIoqY7SJiqYNljuFRZ9DFoLJ +6BWTSvjpVZTVsrVd4lgv3MYVi8fpngA2e/l4b5SwV/YwwtCYRL3f+ap1oiBXxV90m/v QJYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=osmH1rZr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a1709064fcf00b00769d94690fesi7031838ejw.326.2022.09.22.12.58.08; Thu, 22 Sep 2022 12:58:35 -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=@google.com header.s=20210112 header.b=osmH1rZr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbiIVTxF (ORCPT + 99 others); Thu, 22 Sep 2022 15:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232571AbiIVTwr (ORCPT ); Thu, 22 Sep 2022 15:52:47 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B2C710C79E for ; Thu, 22 Sep 2022 12:52:46 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id i15-20020a17090a4b8f00b0020073b4ac27so3265834pjh.3 for ; Thu, 22 Sep 2022 12:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=wMNXJ8tFxE5zdbCt/8NlY898zBIrwCziYNXTEkeFtOE=; b=osmH1rZrpkJ6s76hQuUAEjFLexMUXotkjlIrkAHzJLLxfMjT4VOxIIq7LsqQygOh1U MoPViL9Sh3S3Qf6Ig3abH0WuEvy3q7FJqIZkhBpXAk5dtG45kC6WW06TWbRtFiRcwIZA +/V/HjoJfQPK57rx8trhI7mrhNdKAf1dRseLhJKopMegcnOL2hYPoKiiOZZR0tGrcgUK S/vrE7BpLzym8cvD4FET/cPLMF8VJlHGakNccZ6Putz3DmOWcdPJWkLOuClFVeSCBlZE IfLPei+StKU1CMKK9+vrHZfyN+5Qv06CZ3dDS/Y6m7OFbLzYA9ARkbF6avZezHx5q+Gp F1ew== 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=wMNXJ8tFxE5zdbCt/8NlY898zBIrwCziYNXTEkeFtOE=; b=WYFqrdUCaO/KUTYukOQ1REVpIVuRRT92GR5AZUHe2NtP/TM5A74GZYSQSKl03f8nMJ D6gWVMXnew/R7csEth0Hnov5vqHxiiNjXyS1CUFbjDOjeQRU7u//n5idgkt4UJ+PrDAJ /Wid05ye5V5gnqFtigjyfWz/zfD1H3snXggHZrPbG+NyOkyu0LTWsDuh0yKbHcsFVu4r YLUHnuibyQEBFsW+LHHHrI6RnaM/pwA4kCH1T8G8suX/686l3omaB6am1WY6NBI7rI9O 5oa7f0FhI9l1IDWrlhfxOWoN/GEEDx4ZXGJej71e8Zphl45ilipUCol9pTJxQKKrzr4D okVA== X-Gm-Message-State: ACrzQf0FIoyTWf931l4YY40FK43PmTPPUc1CBU9yeApP6UwvFnouLKwF zPSIq40ym6dX4rC1o3xRvXbqzA== X-Received: by 2002:a17:902:b089:b0:178:54cf:d692 with SMTP id p9-20020a170902b08900b0017854cfd692mr4732453plr.1.1663876365741; Thu, 22 Sep 2022 12:52:45 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id u16-20020a632350000000b004277f43b736sm4180327pgm.92.2022.09.22.12.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 12:52:44 -0700 (PDT) Date: Thu, 22 Sep 2022 19:52:40 +0000 From: Sean Christopherson To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li , Jim Mattson , Michael Kelley , Siddharth Chandrasekaran , Yuan Yao , Maxim Levitsky , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 14/39] KVM: nSVM: Keep track of Hyper-V hv_vm_id/hv_vp_id Message-ID: References: <20220921152436.3673454-1-vkuznets@redhat.com> <20220921152436.3673454-15-vkuznets@redhat.com> <87y1ubn3e9.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y1ubn3e9.fsf@redhat.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Thu, Sep 22, 2022, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > I'm definitely not dead set against having hyperv.{ch}, but unless there's a high > > probability of SVM+Hyper-V getting to eVMCS levels of enlightenment, my vote is > > to put these helpers in svm/nested.c and move then if/when we do end up accumulating > > more SVM+Hyper-V code. > > Well, there's more on the TODO list :-) There are even nSVM-only > features like "enlightened TLB" (to split ASID invalidations into two > stages) so I don't want to pollute 'nested.c'. In fact, I was thinking > about renaming vmx/evmcs.{ch} into vmx/hyperv.{ch} as we're doing more > than eVMCS there already. Also, having separate files help with the > newly introduces 'KVM X86 HYPER-V (KVM/hyper-v)' MAINTAINERS entry. Ya, there is that. > Does this sound like a good enough justification for keeping hyperv.{ch}? Your call, I'm totally ok either way. If we do add svm/hyperv.{ch}, my vote is to also rename vmx/evmcs.{ch} as you suggested. I like symmetry :-)