Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp451729pxy; Wed, 21 Apr 2021 07:00:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuvJZyaMd9inQ3gN4KBFg9n+Hu1FjM17FWvV134RNhZ2ivdlKJpOZhXweYAOYt09Uris2X X-Received: by 2002:a17:90a:a00e:: with SMTP id q14mr11884229pjp.70.1619013641288; Wed, 21 Apr 2021 07:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619013641; cv=none; d=google.com; s=arc-20160816; b=Jnui/XH5r6titqZNhWHrTsNgpmd8Yq9AlOweH2qVskwVKYJk48dMBMGJ5ofVXyQ6at VukLm3RPfNRN9kksEzLd9yy+iKGTaDMVmZJB6IVwl3Z/hiewhisL1QS+e+9HwR7LyTvH 73o7QDo7t7V34XL8ciai2OhEA9E95RvlLng6o6+prEnP9XILNMb2EWhFiUGypgZNYN+Y xZMEEZuWVA77jcyj4t31vBWO0APgqKH2FLPOxpsUQpHXT5PfR0hB+7eS/EcjvYVpxafa a+ClmudjQ5Eeq3ZttbxsKeYvHH+HaiYnqGn3B0BBVz1yTPKyQgnMiblddYbqW4w4HiPW iC0g== 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=0lGPWgCWxMY7QAIfAJHFkFTAYipH0FMtf/PdmxPyrUw=; b=W0VsuQtaSMLeyKcTU+2ZlItpXFQSpaY1VXbVHgIMVccEYiDcUVFJfpAaGtlupgzzCo 12no+pKwG4vuTOzcUu8PSMaWpEXI4MfFWaLs8vLazV4CYckzKP+YyW11ZRqOLnUc664i BG4dsgrcBESvru0T+cKl+50s4XsqYFEDZ/Fv5mtbvololim/SdbfjCo3canBhojG1Ljg QDfTDM8O2UpoUjggtW5vN9Yy1fPxxVNP8KYCdPRoWmel08B1MkkMUyBij06bPb05Hfkr XzlLvoBnqWqTJjxMBIUnue4uWKV72pncmQw8k02HdSWuXNsn5kEG2EyJXlJhL3Oq1//t lMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=gudX5C8+; 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 h11si2954874pju.133.2021.04.21.07.00.27; Wed, 21 Apr 2021 07:00:41 -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=gudX5C8+; 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 S238664AbhDULQc (ORCPT + 99 others); Wed, 21 Apr 2021 07:16:32 -0400 Received: from linux.microsoft.com ([13.77.154.182]:42908 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235951AbhDULQa (ORCPT ); Wed, 21 Apr 2021 07:16:30 -0400 Received: from [192.168.86.31] (c-73-38-52-84.hsd1.vt.comcast.net [73.38.52.84]) by linux.microsoft.com (Postfix) with ESMTPSA id DC78B20B8001; Wed, 21 Apr 2021 04:15:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DC78B20B8001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1619003757; bh=0lGPWgCWxMY7QAIfAJHFkFTAYipH0FMtf/PdmxPyrUw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=gudX5C8+viqc/m58ZbDfBIGMK5DF+vGWywf/UQuUq+w1S+fUI8PZmcpVYd9Zhl71G 7V5SefAQZ34ieq6v2Vd8FjSDLntWCzHUMWa3sIdlqQpijXqElS6Ied6EMj3YoGLLjf JG9H08F28TC64nZMQQiYrs63e9IN3gNQlH1Xp1o0= Subject: Re: [PATCH v2 2/7] hyperv: SVM enlightened TLB flush support flag To: Wei Liu Cc: Lan Tianyu , Michael Kelley , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stephen Hemminger , Haiyang Zhang , "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, viremana@linux.microsoft.com References: <3fd0cdfb9a4164a3fb90351db4dc10f52a7c4819.1618492553.git.viremana@linux.microsoft.com> <20210421100026.4hcgrxeri444if45@liuwe-devbox-debian-v2> From: Vineeth Pillai Message-ID: <4a57cd2b-43b5-2625-3663-449ffa715b51@linux.microsoft.com> Date: Wed, 21 Apr 2021 07:15:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210421100026.4hcgrxeri444if45@liuwe-devbox-debian-v2> 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/21/21 6:00 AM, Wei Liu wrote: > On Thu, Apr 15, 2021 at 01:43:37PM +0000, Vineeth Pillai wrote: >> >> +/* >> + * This is specific to AMD and specifies that enlightened TLB flush is >> + * supported. If guest opts in to this feature, ASID invalidations only >> + * flushes gva -> hpa mapping entries. To flush the TLB entries derived >> + * from NPT, hypercalls should be used (HvFlushGuestPhysicalAddressSpace >> + * or HvFlushGuestPhysicalAddressList). >> + */ >> +#define HV_X64_NESTED_ENLIGHTENED_TLB BIT(22) >> + > c > This is not yet documented in TLFS, right? I can't find this bit in the > latest edition (6.0b). This would be documented in the TLFS update which is soon to be released. > > My first thought is the comment says this is AMD specific but the name > is rather generic. That looks a bit odd to begin with. I thought of of keeping the name generic to avoid renaming Intel specific ones also. If I understand correctly, the TLFS would also be having generic name for this and just translated the generic name here in this header. Thanks, Vineeth