Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp549752pxb; Fri, 16 Apr 2021 11:56:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZTJa47Z6mGIFNIUJn0synv7W9xA4CWTklOj7dWsCe9pgkdB4/pS9949zdggj86zT9oGYN X-Received: by 2002:a50:ff13:: with SMTP id a19mr11730528edu.300.1618599384361; Fri, 16 Apr 2021 11:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618599384; cv=none; d=google.com; s=arc-20160816; b=ArHfQAC1xH22FYOGUposBjwPj6CRUheRbBTHrFXEYdE7bdWqEDpq6baAytp5L8/UBx fSM8qxuPZiEaH0VSeYvDS19sEy0D8sIQ6jQi3QKKjE6gX7Y7r/CbhCiT7V3iS7QcxaLE QgSgdN2X96fqAL95G+QB6trktSlgOgPCmYM/mWbMVVb8GDfH2WZpIx33DazBgj8lsUrT +DP7yddF/d5jIvijGfXMWWdkxfr0WvK3QNFex84mNrS0axpSfHAQVJwGOjz+9rPm2Eju ZaXfJG1HNsYHGlLgMpYtIQa7tymtNN98bovByicuqech/s00jNdI/2PICFkvYG8Buhuj efJA== 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=yI1pAMpH+mhQxjxBFxyi6XTgljNwMYGQtQI+vVWmMsk=; b=rJd3dP0LIE+4nVzMoWM+UggciFITQNqpBTE9ui3YtcdH4zRl0yVqnFtpl6HM8EvFZL 5ainoo7f3Ef6CDHAjMd9SyJbfT5wsmaXddpfLWCyqL5/QIKS8pl5Rrtqc9LSZ2d3JXoF IHikSd8dGkmkXNc5/Zp7KqtElBBcvT72wchh+vcHc8f18OMsADUCSdZAKtDLCi3gDGn7 2MN7zfX/DAE9oyj0olbzKBSM3yr1qcACYOoNRKUAH0PjXZ6wF672I5DO0lvy8jGLQLHw yUAJIs+DpoTCDET0j90PFwAQY1Yde/rDsmz1lAcv1DrA28SofFck62zm4pT4hFn3tgOd /xmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=slYNO8en; 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 v21si5909608ejg.244.2021.04.16.11.56.01; Fri, 16 Apr 2021 11:56:24 -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=slYNO8en; 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 S241454AbhDPR0i (ORCPT + 99 others); Fri, 16 Apr 2021 13:26:38 -0400 Received: from linux.microsoft.com ([13.77.154.182]:56122 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235935AbhDPR0i (ORCPT ); Fri, 16 Apr 2021 13:26:38 -0400 Received: from [192.168.86.23] (c-73-38-52-84.hsd1.vt.comcast.net [73.38.52.84]) by linux.microsoft.com (Postfix) with ESMTPSA id 246E820B8001; Fri, 16 Apr 2021 10:26:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 246E820B8001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1618593973; bh=yI1pAMpH+mhQxjxBFxyi6XTgljNwMYGQtQI+vVWmMsk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=slYNO8en83Yfldinakff1HJ/VLKev28A09BDDpGfNxEsBbJsFZzaRUwIL6TqVp60l n+V4W/Pm2YDlMVWcvXcoKFbSRkv9U3k9t4ZtyrpKL7VlbKv/AQ5tquBIZ2Bejd650V yJmIxW3UOiU6H1DyeLr5CWaC44C8wO2qaDuhG75M= Subject: Re: [PATCH v2 5/7] KVM: SVM: hyper-v: Remote TLB flush for SVM 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 , viremana@linux.microsoft.com References: <959f6cc899a17c709a2f5a71f6b2dc8c072ae600.1618492553.git.viremana@linux.microsoft.com> <87sg3q7g7b.fsf@vitty.brq.redhat.com> From: Vineeth Pillai Message-ID: Date: Fri, 16 Apr 2021 13:26:08 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <87sg3q7g7b.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/16/2021 5:04 AM, Vitaly Kuznetsov wrote: > Vineeth Pillai writes: > > > > +#if IS_ENABLED(CONFIG_HYPERV) > +static void hv_init_vmcb(struct vmcb *vmcb) > +{ > + struct hv_enlightenments *hve = &vmcb->hv_enlightenments; > + > + if (npt_enabled && > + ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB) > Nitpick: we can probably have a 'static inline' for > > "npt_enabled && ms_hyperv.nested_features & HV_X64_NESTED_ENLIGHTENED_TLB" > > e.g. 'hv_svm_enlightened_tlbflush()' Makes sense, will do. Thanks, Vineeth