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=-14.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=no 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 1D21EC433B4 for ; Thu, 8 Apr 2021 13:18:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9AFB610CB for ; Thu, 8 Apr 2021 13:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231474AbhDHNSu (ORCPT ); Thu, 8 Apr 2021 09:18:50 -0400 Received: from linux.microsoft.com ([13.77.154.182]:35392 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbhDHNSu (ORCPT ); Thu, 8 Apr 2021 09:18:50 -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 A411B20B5680; Thu, 8 Apr 2021 06:18:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A411B20B5680 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1617887918; bh=Uvq3RHp7zfj+SgleBAFg1sqKAQHQLyNq9zpMXhnErH8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=juVIgNa7Vc+ziH/Msl5xciwWFD1g6WdeZO+Nq6uKJ16YK5Si5OhGNAd/4RC27IN/L pEB0SpdpoVetBRxgwjsbHAkyRNd2o2BoyNzd79dOnCXbw8+1EPCf1SheKLZzyMGPnp Z8BDmRP1EvyCrpHV3b3FrgGZ8mkj63x7AReEExDc= Subject: Re: [PATCH 3/7] KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx To: Vitaly Kuznetsov 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, Lan Tianyu , Michael Kelley , Paolo Bonzini , Sean Christopherson , Wanpeng Li , Jim Mattson , Joerg Roedel , Wei Liu , Stephen Hemminger , Haiyang Zhang References: <87im4xav05.fsf@vitty.brq.redhat.com> From: Vineeth Pillai Message-ID: <88cf8856-6f72-9c50-6eca-4aca96419259@linux.microsoft.com> Date: Thu, 8 Apr 2021 09:18:35 -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: <87im4xav05.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:14 AM, Vitaly Kuznetsov wrote: > + /* >> + * Two Dimensional paging CR3 >> + * EPTP for Intel >> + * nCR3 for AMD >> + */ >> + u64 tdp_pointer; >> }; > 'struct kvm_vcpu_hv' is only allocated when we emulate Hyper-V in KVM > (run Windows/Hyper-V guests on top of KVM). Remote TLB flush is used > when we run KVM on Hyper-V and this is a very different beast. Let's not > mix these things together. I understand that some unification is needed > to bring the AMD specific feature but let's do it differently. > > E.g. 'ept_pointer' and friends from 'struct kvm_vmx' can just go to > 'struct kvm_vcpu_arch' (in case they really need to be unified). Ahh yes, thanks for catching this. Will fix this in the next version. Thanks, Vineeth