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 X-Spam-Level: X-Spam-Status: No, score=-19.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B952C433ED for ; Thu, 8 Apr 2021 13:20:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3494461157 for ; Thu, 8 Apr 2021 13:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231527AbhDHNUO (ORCPT ); Thu, 8 Apr 2021 09:20:14 -0400 Received: from linux.microsoft.com ([13.77.154.182]:35578 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbhDHNUN (ORCPT ); Thu, 8 Apr 2021 09:20:13 -0400 Received: from [192.168.86.30] (c-73-38-52-84.hsd1.vt.comcast.net [73.38.52.84]) by linux.microsoft.com (Postfix) with ESMTPSA id 45C8720B5680; Thu, 8 Apr 2021 06:20:00 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 45C8720B5680 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1617888002; bh=m4XVZsDylx1Y5K0Go69fD64RY1hsejCeHkGzzgzsFQ8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LxpyCra7ur90dkmIxfrLR6kFWFtxsclh3w9C7DtEWzagA0pdp4wmQsLNRecBCONHf TmbUldMBJ4X9b0OxUbx0paIrizUrm6IGc+z3fxJpApYT+h5j4LKyQTrsMEC41A/Klm Rm6A5P1g3JyBkAUAO43YXF/2xlQeyVNXOkieP0S8= Subject: Re: [PATCH 5/7] KVM: SVM: hyper-v: Remote TLB flush for SVM To: Vitaly Kuznetsov , Lan Tianyu , Michael Kelley , Paolo Bonzini , Sean Christopherson , Wanpeng Li , Jim Mattson , Joerg Roedel , Wei Liu , Stephen Hemminger , Haiyang Zhang Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "K. Y. Srinivasan" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org References: <1c754fe1ad8ae797b4045903dab51ab45dd37755.1617804573.git.viremana@linux.microsoft.com> <87ft01ausu.fsf@vitty.brq.redhat.com> From: Vineeth Pillai Message-ID: Date: Thu, 8 Apr 2021 09:19:59 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <87ft01ausu.fsf@vitty.brq.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 4/8/21 7:18 AM, Vitaly Kuznetsov wrote: > >> enable_gif(svm); >> @@ -3967,6 +3999,9 @@ static void svm_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long root, >> svm->vmcb->control.nested_cr3 = cr3; >> vmcb_mark_dirty(svm->vmcb, VMCB_NPT); >> >> + if (kvm_x86_ops.tlb_remote_flush) >> + kvm_update_arch_tdp_pointer(vcpu->kvm, vcpu, cr3); >> + > VMX has "#if IS_ENABLED(CONFIG_HYPERV)" around this, should we add it > here too? Agreed. Will fix. Thanks, Vineeth