Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp602780pxy; Wed, 21 Apr 2021 10:15:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN0ok9ZiBtrVccIs3bDbEbkA7KwmdZVfJeaI8TKBkt846xACkiFUTGEhwGuVtUvSn0rw9y X-Received: by 2002:a17:906:4154:: with SMTP id l20mr33980689ejk.509.1619025327616; Wed, 21 Apr 2021 10:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619025327; cv=none; d=google.com; s=arc-20160816; b=dccb7ibrqppOCWijD3LQR9ZEVMxFvJPQ4v/2OReBSLh1BKPyvbHNWBviQZg2xzkNIi Plzn1pLzGXRIbs/aqVjVvu2YfRCTbiv4s7PRR64iPa0xEOuF1cIDf/5n8ftufAZ3cScT tQnPQXVi0B5gg+c3sGKbvOO19WMZsTLWlW21XQB1nNNqc5B4WfsmW3wX7iZo21aa5ctc Ubroi2a7+wPdR+++JvF5iRA3SnnT70MQaFoMYF7TAhBnc2JwqVKkrybby0+E6pPR3tyW 9xw1NCh8Wpl6fOifQKVGOO/waykifd2piu59U8mLEmUWR/ksdHkrJxXfPUQf9orJMOyu jiUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=n+4ksnXPTGxUVOIW+qyHuupy0kwqtpOF8lF9ySVgvLs=; b=RUi4evs4ZaANCehmsn6Vxsj0S4IhyEYk39+4FANv+ZYcYfwm+gErDd7tzVVYDHQiDX 0qYlHXtUDbfORMg5JTJD2Lt1VjiDrT+bt2r7Xf5ItXfilQnONyxFOUxL8SK4X6xfsVgM jJlK6x6F9jhkSJxcGybnsSHTDP8vQCoYVL5By7pZtuCPp8xo6+uYndRj9YcGjfPQkF9P 6SGFwEIFhs0kI/9ulRkj1GpZibwHAMjkFfGEEERxyPwApePqx4IPTq8OvV7Qg1fcE8So Ns+feh3tE5R/wHhvT5fWDVJzWU2TeTUvs+1ZzfUj3i3BJA6M0RjRXdUKuFcc5+LNWtHF zdTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz22si2238442ejc.373.2021.04.21.10.15.03; Wed, 21 Apr 2021 10:15:27 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242326AbhDUNWQ (ORCPT + 99 others); Wed, 21 Apr 2021 09:22:16 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:42763 "EHLO mail-wr1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242420AbhDUNUk (ORCPT ); Wed, 21 Apr 2021 09:20:40 -0400 Received: by mail-wr1-f51.google.com with SMTP id p6so34674669wrn.9; Wed, 21 Apr 2021 06:20:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=n+4ksnXPTGxUVOIW+qyHuupy0kwqtpOF8lF9ySVgvLs=; b=eS3135WxHXgT3W/iSiR7Yc7xiDy7xvwfNY5zwmD8Xx5OUTOUYAgb85IXUOw396DD7t qXN6m+gt2PdMJB7lTHY3E+ybEVJU4Y+SQI+pQ0KHcbJBRy9wjjZm9ltvJY4eYCQjgZCM jeCApUX50nwZT4PbYbpRdOLT2bRhW0du02dr71IY1DwplWLFdBA0CAjwXhMMlAneHO+D b1j8zW/TpQtv+aT6liYRYrrz8bbaAivQn4bmWGlczhTkTOU7vrRn0NCTXtyPBspy6tUH pao0SDwsSifeivLHnkb3BPYUlg9tuAg8fllEiuFo0Ux+RPECT6BD4egZhjhVjO/ChK+o NTZQ== X-Gm-Message-State: AOAM533kubjMAoLW2JeM0ZVemsWYorbepl7FMDyrKMJGFhwbeqxK9Ef9 XZg6tjIA06R/0UIxu/AK96A= X-Received: by 2002:a05:6000:18ae:: with SMTP id b14mr27026149wri.211.1619011205131; Wed, 21 Apr 2021 06:20:05 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id v2sm3061922wrr.26.2021.04.21.06.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 06:20:04 -0700 (PDT) Date: Wed, 21 Apr 2021 13:20:03 +0000 From: Wei Liu To: Vineeth Pillai Cc: Wei Liu , 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 Subject: Re: [PATCH v2 2/7] hyperv: SVM enlightened TLB flush support flag Message-ID: <20210421132003.cfnqxdy2vcb24pnp@liuwe-devbox-debian-v2> References: <3fd0cdfb9a4164a3fb90351db4dc10f52a7c4819.1618492553.git.viremana@linux.microsoft.com> <20210421100026.4hcgrxeri444if45@liuwe-devbox-debian-v2> <4a57cd2b-43b5-2625-3663-449ffa715b51@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a57cd2b-43b5-2625-3663-449ffa715b51@linux.microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 07:15:54AM -0400, Vineeth Pillai wrote: > > > 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. Okay. > > > > > 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. Okay. Let's match what is written in TLFS. Wei. > > Thanks, > Vineeth >