Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp440242pxf; Thu, 8 Apr 2021 06:21:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHoIeTesOfu9wccpd3+uHoxgaN9ni055NUw4RG2D5Sz8Bz1gSzCVQCi6K//TEweC5spXj+ X-Received: by 2002:aa7:c9d1:: with SMTP id i17mr11035208edt.46.1617888088241; Thu, 08 Apr 2021 06:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617888088; cv=none; d=google.com; s=arc-20160816; b=IyhVAYtY7zm5JFtcrylD1Tpbjx/tdg+r/OxEwnH+uxiIy1t5cTBlCfsHPVFVCIOFxO UH02KJoavVTmU72xWlpZoALy887dKb829c9Ofgno/I7qz/rMFdELk3OgBDUrxntUC7uo xnPp6VKgvZslw7lFPTlUXXe8ANQwb3Iwft9dfh1Ss86MexLr+1eU8xntn29BHeGqwBt6 Z1Vum1B+WckVBRUqb5dqikr/2Ia4GvkW/u2MNho/reTUvwo3P+jkY8Nss3UUYVJu8PJa mSaIJpLCrXKyJmujn9p18n2C3oARGyFjRrwZCM94gN/nYyZgHRydt9x83lQdlGeyTd40 4baA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=Uvq3RHp7zfj+SgleBAFg1sqKAQHQLyNq9zpMXhnErH8=; b=EG1DtiazpE1Y7A+kKXsR3V2Fjv3oXuPXpT0c8lNcZ3kAwBLNywXGEwtQjSSbOH2Mt9 Hu6NfcC8kvCwLfQItI5s4ntq7ZXO1OnsmKyx4LKsd2jxy35mQKA9f/HH8276FrGUzSgI lPOC0hf6NYSr1NcTx8tQHEwhcCBSYLDyaPPSn5wyG01Um/OonP45vXT7KKEX2CDa66G0 +/Ga+gLdD6+kDnrpvccZVS2QmRp9vA6s8gY/3/AjMq84LZxjG/2j3uVOe7kOJ6AzfHiv dPhD7oI2HmoCqOc+69RGBMLj2qlxnqYcTOooRuSegPpYfa2FwIMtJWaLg3y97o7jBgAH 1T1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=juVIgNa7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si12901907edq.240.2021.04.08.06.21.04; Thu, 08 Apr 2021 06:21:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=juVIgNa7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231508AbhDHNSu (ORCPT + 99 others); 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: linux-kernel@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