From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266Ab2GHPzF (ORCPT ); Sun, 8 Jul 2012 11:55:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11225 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859Ab2GHPzD (ORCPT ); Sun, 8 Jul 2012 11:55:03 -0400 Message-ID: <4FF9AD2A.1000901@redhat.com> Date: Sun, 08 Jul 2012 18:54:18 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Frederic Weisbecker CC: "Paul E. McKenney" , LKML , Alessio Igor Bogani , Andrew Morton , Chris Metcalf , Christoph Lameter , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , "H. Peter Anvin" , Ingo Molnar , Josh Triplett , Kevin Hilman , Max Krasnyansky , Peter Zijlstra , Stephen Hemminger , Steven Rostedt , Sven-Thorsten Dietrich , Thomas Gleixner , Marcelo Tosatti , KVM list Subject: Re: [PATCH 2/6] rcu: Allow rcu_user_enter()/exit() to nest References: <1341576018-10721-1-git-send-email-fweisbec@gmail.com> <1341576018-10721-3-git-send-email-fweisbec@gmail.com> In-Reply-To: <1341576018-10721-3-git-send-email-fweisbec@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2012 03:00 PM, Frederic Weisbecker wrote: > Allow calls to rcu_user_enter() even if we are already > in userspace (as seen by RCU) and allow calls to rcu_user_exit() > even if we are already in the kernel. > > This makes the APIs more flexible to be called from architectures. > Exception entries for example won't need to know if they come from > userspace before calling rcu_user_exit(). I guess I should switch kvm to rcu_user_enter() and co, so we can disable the tick while running in a guest. But where are those functions? What are the rules for calling them? -- error compiling committee.c: too many arguments to function