From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DCEBC433B4 for ; Wed, 21 Apr 2021 10:57:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C746F61447 for ; Wed, 21 Apr 2021 10:57:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235627AbhDUK5h (ORCPT ); Wed, 21 Apr 2021 06:57:37 -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.