Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp435910pxy; Wed, 21 Apr 2021 06:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEcMLEUu1djhHklF4b8ok70xSdY2JkwyFYykqyx0MOV6umGYPuny3ddy5EH2BFQC+bG/8Z X-Received: by 2002:a05:6402:1103:: with SMTP id u3mr38079392edv.205.1619012278424; Wed, 21 Apr 2021 06:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619012278; cv=none; d=google.com; s=arc-20160816; b=ppESuDzi734KWFHgqdKDWAb75ez+rXf6DSvF3fwiED/fGUb80B6gGJeC8V9eEAgwxE 5ivwcWysBrwd/NfyGl3euWUWP6mrt1bCJia0ox8NHCuK2vNS0W1JRElF6Q0gfiFiuVM0 ZXXn3IvDH2nuz4/bJqczJwEdEG2XJC7MkC3UVxicJTymRTI7eFyMkT+UrXKIzwJ64Dbt Ly45tknh3cSAhLyfvmWQV/0RD+0QPVi1FsvPejqx61WzfQwQ6KoVY0tSyMQXNJ5G6tYU QDmRF1qpIittLaJGYo23k5dL+Fl0TwD/XphS5HLMGkpKX4b+/0lskECjxhCv8mNdIemo F0+g== 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:dkim-signature; bh=H9lNsFvD1z32P5vFLPmE5q7DOtlulenNzXaX4lIhySs=; b=cLCyJIVyUunQmOU1CaPTDvGgb0ulwk8zPdmN0a35trJllFGyIiCtgpgQybKUXWRlA8 P7cSd1yPCsgH31L5s1EQLjPDmdAtGVZ6PF9T6f/o53Y0PhFl1tFuRkrODLcIXZknoQHg qDZUxmLec11xQdMsbh4JczSzOwEcp6O9BSxrCSWnNsM3tHd2lCvfoP/MJykCNqIMgV7W OBprWF2NEiJLCa54cqA+VHn1R+BE0qkjn+7CZsHs4Wqa2uMSLkWyzOyEK55fMK/g0Fa2 HxWQMpeLI2t/oO9Lfdjnp4qSgbLDCwJ1+dKpMVpWgaQfmsjPJW77RZEOpyns2AbJEMdy HP+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oPQpLqyf; 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 s1si2047416edy.160.2021.04.21.06.37.34; Wed, 21 Apr 2021 06:37:58 -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=@kernel.org header.s=k20201202 header.b=oPQpLqyf; 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 S235352AbhDUK5g (ORCPT + 99 others); Wed, 21 Apr 2021 06:57:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:50764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhDUK5g (ORCPT ); Wed, 21 Apr 2021 06:57:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C009613FB; Wed, 21 Apr 2021 10:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619002622; bh=wIXOtHKDPyG2teIOsDxFC7sBnyiGDvLwiRR06+vvenI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oPQpLqyf+j6NLmiztuVd4I9EP3LJO/EVzlLuxYo5b3m/5hlj5G3P1WOvxJX4VzSoS LyPmcNXtOifjrw+Dv+xv6feCoxGFDeRDahVLFL5jXFhj+tBu0+ea+dJVg3dK2paH0K yNbp367TS/0VSd6TNBbzdqeZn8C+PuSM4buCOQU7Rh3hp1H9YSxHqZIsYD3wXHPbnq fisUTVOek3DH+X5//SjaiFhcfjRIDtNqf1wli2imaPQjnD+D+DDyhbfEwPrUD6B/m/ 014Pe8+QYf8Ju1K9DEybZpAbDgiYa7UHrZ8hxuQzI60IITsFSkBXAMjvtDD/ihi679 zLX9sfKwmcxpw== Date: Wed, 21 Apr 2021 12:57:00 +0200 From: Frederic Weisbecker To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Michael Tokarev , Christian Borntraeger Subject: Re: [PATCH v3 1/9] context_tracking: Move guest exit context tracking to separate helpers Message-ID: <20210421105700.GC16580@lothringen> References: <20210415222106.1643837-1-seanjc@google.com> <20210415222106.1643837-2-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210415222106.1643837-2-seanjc@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 03:20:58PM -0700, Sean Christopherson wrote: > From: Wanpeng Li > > Provide separate context tracking helpers for guest exit, the standalone > helpers will be called separately by KVM x86 in later patches to fix > tick-based accounting. > > Suggested-by: Thomas Gleixner > Cc: Thomas Gleixner > Cc: Sean Christopherson > Cc: Michael Tokarev > Cc: Christian Borntraeger > Signed-off-by: Wanpeng Li > Co-developed-by: Sean Christopherson > Signed-off-by: Sean Christopherson > --- > include/linux/context_tracking.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h > index bceb06498521..200d30cb3a82 100644 > --- a/include/linux/context_tracking.h > +++ b/include/linux/context_tracking.h > @@ -131,10 +131,15 @@ static __always_inline void guest_enter_irqoff(void) > } > } > > -static __always_inline void guest_exit_irqoff(void) > +static __always_inline void context_tracking_guest_exit_irqoff(void) You can make this context_tracking_guest_exit() since there is no irq-on version. Thanks.