Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755539AbbBFRW0 (ORCPT ); Fri, 6 Feb 2015 12:22:26 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:64607 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbbBFRWZ (ORCPT ); Fri, 6 Feb 2015 12:22:25 -0500 Date: Fri, 6 Feb 2015 18:22:16 +0100 From: Frederic Weisbecker To: riel@redhat.com Cc: kvm@vger.kernel.org, borntraeger@de.ibm.com, linux-kernel@vger.kernel.org, mtosatti@redhat.com, mingo@kernel.orgm, ak@linux.intel.com, oleg@redhat.com, masami.hiramatsu.pt@hitachi.com, paulmck@linux.vnet.ibm.com, lcapitulino@redhat.com, pbonzini@redhat.com Subject: Re: [PATCH 1/5] rcu,nohz: add state parameter to context_tracking_user_enter/exit Message-ID: <20150206172209.GC21905@lerouge> References: <1423167832-17609-1-git-send-email-riel@redhat.com> <1423167832-17609-2-git-send-email-riel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423167832-17609-2-git-send-email-riel@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 18 On Thu, Feb 05, 2015 at 03:23:48PM -0500, riel@redhat.com wrote: > From: Rik van Riel > > Add the expected ctx_state as a parameter to context_tracking_user_enter > and context_tracking_user_exit, allowing the same functions to not just > track kernel <> user space switching, but also kernel <> guest transitions. > > Signed-off-by: Rik van Riel You should consider using guest_enter() and guest_exit() instead. These are context tracking APIs too but specifically for guest. These can be uninlined if needed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/