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 43B96C433EF for ; Wed, 2 Feb 2022 09:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245656AbiBBJxB (ORCPT ); Wed, 2 Feb 2022 04:53:01 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:32896 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240700AbiBBJw7 (ORCPT ); Wed, 2 Feb 2022 04:52:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643795578; 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=FJYm0PPuSG5P58MkxPI9TQ7TBw2y3cTWuDQw+JeYdYw=; b=EtZu8DeTc666Qq5QyJfzqpPnS6xd1vHTWiKsocZQgPOMBD+RuntzGrZ1kWIiETJ7N5U9As Em6AnLHGr5Pe26Bzp4yBe0NcOUCOaq17aGv3j2w1WDqa1UWAWCCaDRjkfco+RsClQhrQup PqnnWcESTQZM8lnY/RgtixRCSrNZeVA= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-317-8B9z71h-NauL6bZcFjUxxg-1; Wed, 02 Feb 2022 04:52:57 -0500 X-MC-Unique: 8B9z71h-NauL6bZcFjUxxg-1 Received: by mail-ej1-f69.google.com with SMTP id mp5-20020a1709071b0500b0069f2ba47b20so7791360ejc.19 for ; Wed, 02 Feb 2022 01:52:57 -0800 (PST) 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=FJYm0PPuSG5P58MkxPI9TQ7TBw2y3cTWuDQw+JeYdYw=; b=pWQg7hyQITJWpryUtV8erlH5zWTtP39RJhKHnXWN3TNyEopHPE2r1IWREmboRpX4SP m2iKAHkfMD9DS1Bx5MUzbJUUTQ47tBX2cITH5yLSX8xPTHfB1PdchTehVNgtEEcSqREg 2enfodRY8FYN1U1EYDv33bk6WusC0XGq/xe1pk3Tw65XpOdO/fI7yRFSCVARuLXgvczn Bv7RYHvej0J2V0u7MAIr6ME40N6T5NhBbu/cnOdvMsUr6E22ajd1+ju9As4dHLYBquZf p6JU6+Hq+MdIvjzvFHkxW+De2udpfUZJsih43EmCEQCUOVLHzA+IvhlmxxEPlAkHsNN+ mQgQ== X-Gm-Message-State: AOAM533TVGCbKHBV9/Xrmu04dpDyU+91FHZp7j74YJzUp5JkdOWl5G3r RlcJHoxRT9+bjSql8yR7z85Z38GVxLlFy8IsrmwUDgsxaaZCklLYHNt3sNkPGyDjUmB+DQLjLIx TDiSMNvca/71DVBYNe8fDnf/lciqyBSo1ergCbkn7CsewRySpz53xcEVzByUol0Qo39Zbt0qbjs xB X-Received: by 2002:a17:906:2e8b:: with SMTP id o11mr24527495eji.241.1643795576759; Wed, 02 Feb 2022 01:52:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5VEKcGjjuFf8IKMzODHl6ryi4f2cI9jzsIHgMrjlJYrW0OM0f6beiwbK4bDQ9FfeMUIgxjQ== X-Received: by 2002:a17:906:2e8b:: with SMTP id o11mr24527474eji.241.1643795576522; Wed, 02 Feb 2022 01:52:56 -0800 (PST) Received: from fedora (nat-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id dn22sm4575465edb.80.2022.02.02.01.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 01:52:56 -0800 (PST) From: Vitaly Kuznetsov To: Paolo Bonzini , kvm@vger.kernel.org Cc: Sean Christopherson , Wanpeng Li , Jim Mattson , Maxim Levitsky , Vineeth Pillai , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] KVM: SVM: nSVM: Implement Enlightened MSR-Bitmap for Hyper-V-on-KVM and fix it for KVM-on-Hyper-V In-Reply-To: References: <20211220152139.418372-1-vkuznets@redhat.com> <35f06589-d300-c356-dc17-2c021ac97281@redhat.com> <87sft2bqup.fsf@redhat.com> <66bcd1bf-0df4-8f02-9c0d-f71cecef71f4@redhat.com> <87o83qbehk.fsf@redhat.com> Date: Wed, 02 Feb 2022 10:52:55 +0100 Message-ID: <87leytbnns.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 2/1/22 19:58, Vitaly Kuznetsov wrote: >>> Hmm, it fails to compile with CONFIG_HYPERV disabled, and a trivial >>> #if also fails due to an unused goto label. Does this look good to you? >>> >> Hm, it does but honestly I did not anticipate this dependency -- >> CONFIG_HYPERV is needed for KVM-on-Hyper-V but this feature is for >> Hyper-V-on-KVM. Let me take a look tomorrow. >> > > It's because, without it, the relevant structs are not defined by > svm_onhyperv.h. Go ahead and send a new version if you prefer Should be fixed in v2. I still think it makes sense to keep this KVM-on-Hyper-V and Hyper-V-on-KVM separation as it's really confusing to an unprepared reader. There's still room for improvement in nVMX I believe but it's orthogonal to this nSVM feature. -- Vitaly