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 3E7C2C433F5 for ; Tue, 1 Feb 2022 13:49:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238888AbiBANtO (ORCPT ); Tue, 1 Feb 2022 08:49:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30093 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238876AbiBANtN (ORCPT ); Tue, 1 Feb 2022 08:49:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643723352; 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=gb3u5DHLCGetxN0uWnH4iM2RSertj3cWh5p/ybXC50g=; b=h0v6slBwZbTbrAJ1fxdB0OS4+zD0wph5NUgIIxAOQzVgS1zyOPvvqmVau4PlKBeybpvr0Y OT9jZKo0k1deozIfsNNjnUY0rT+GfcNX8dEny2XNyjIboWcWxO7xiso3u5t2k4xw4m3Spf 40OnjtFrgUF5M1to7NC1qg5waiyvIa4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-620-r1Cym-tlPayH2Zd86JWMyg-1; Tue, 01 Feb 2022 08:49:11 -0500 X-MC-Unique: r1Cym-tlPayH2Zd86JWMyg-1 Received: by mail-ed1-f69.google.com with SMTP id en7-20020a056402528700b00404aba0a6ffso8703859edb.5 for ; Tue, 01 Feb 2022 05:49:11 -0800 (PST) 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=gb3u5DHLCGetxN0uWnH4iM2RSertj3cWh5p/ybXC50g=; b=tRH0wF6fIOXS7akc5znw9NBLH7Nn5J41NN6FEj3Q3Vd75FCltQ/cVmeyjrsFQ9iQJx Qc+xEpgoZw+wDHY0n/t6qMeGOODm2VtETVahWzBwUJnwMckAS9yVouF3QWMZ/s62ohJq CV3lOEW0hSz8TJlfhnDvETyJdDEDTYU4hBhaK6kL1ou1AcdBN2zwZuBgSsmThLZzkWR0 2zca+pFoV/JBFv63iKGimlrCuYt+w1rHveN46rJdogA+ibFwLkoUjxZVDFnM8O6lv3dG CgU3HM1KwWnruV0rUJdC5uHk1Kh6APvt472XJMfucvB8HezJ7+R7DOHHv+VVyHwZ/3F2 dZaw== X-Gm-Message-State: AOAM533gu513rbAQz9sMMiFrbQ3UsjBRlcP9ugqoAUor7sTbSurZuxs7 igOfXoG0q9qGFmjfHpobwHg2TvknkGC3mePT4cC3bfnk5ZBh7LRLeuRk4TdJ1yN/agM2317903c kgW/jRLZ0OgDeonoDbuCTOUkO X-Received: by 2002:a17:907:1612:: with SMTP id hb18mr5997438ejc.724.1643723350172; Tue, 01 Feb 2022 05:49:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2PA8mupdsxfkcEkT+V1LoyDQO3cZpptFXHIgLFlEEXevhP31yy+uI4yF7M5Qe3/mJ3pKzyA== X-Received: by 2002:a17:907:1612:: with SMTP id hb18mr5997407ejc.724.1643723349951; Tue, 01 Feb 2022 05:49:09 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id og19sm9419431ejc.147.2022.02.01.05.49.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Feb 2022 05:49:09 -0800 (PST) Message-ID: <35f06589-d300-c356-dc17-2c021ac97281@redhat.com> Date: Tue, 1 Feb 2022 14:49:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 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 Content-Language: en-US To: Vitaly Kuznetsov , kvm@vger.kernel.org Cc: Sean Christopherson , Wanpeng Li , Jim Mattson , Maxim Levitsky , Vineeth Pillai , linux-kernel@vger.kernel.org References: <20211220152139.418372-1-vkuznets@redhat.com> From: Paolo Bonzini In-Reply-To: <20211220152139.418372-1-vkuznets@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/21 16:21, Vitaly Kuznetsov wrote: > Enlightened MSR-Bitmap feature implements a PV protocol for L0 and L1 > hypervisors to collaborate and skip unneeded updates to MSR-Bitmap. > KVM implements the feature for KVM-on-Hyper-V but it seems there was > a flaw in the implementation and the feature may not be fully functional. > PATCHes 1-2 fix the problem. The rest of the series implements the same > feature for Hyper-V-on-KVM. > > Vitaly Kuznetsov (5): > KVM: SVM: Drop stale comment from > svm_hv_vmcb_dirty_nested_enlightenments() > KVM: SVM: hyper-v: Enable Enlightened MSR-Bitmap support for real > KVM: nSVM: Track whether changes in L0 require MSR bitmap for L2 to be > rebuilt > KVM: x86: Make kvm_hv_hypercall_enabled() static inline > KVM: nSVM: Implement Enlightened MSR-Bitmap feature > > arch/x86/kvm/hyperv.c | 12 +-------- > arch/x86/kvm/hyperv.h | 6 ++++- > arch/x86/kvm/svm/nested.c | 47 ++++++++++++++++++++++++++++----- > arch/x86/kvm/svm/svm.c | 3 ++- > arch/x86/kvm/svm/svm.h | 16 +++++++---- > arch/x86/kvm/svm/svm_onhyperv.h | 12 +++------ > 6 files changed, 63 insertions(+), 33 deletions(-) > Queued 3-5 now, but it would be nice to have some testcases. Paolo