From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752407AbbKGJig (ORCPT ); Sat, 7 Nov 2015 04:38:36 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34101 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbbKGJic (ORCPT ); Sat, 7 Nov 2015 04:38:32 -0500 Subject: Re: [PATCH 1/3] context_tracking: remove duplicate enabled check To: Andy Lutomirski References: <1445996397-32703-1-git-send-email-pbonzini@redhat.com> <1445996397-32703-2-git-send-email-pbonzini@redhat.com> Cc: "linux-kernel@vger.kernel.org" , kvm list , Andy Lutomirski , Frederic Weisbecker , Rik van Riel , Paul McKenney From: Paolo Bonzini Message-ID: <563DC692.5030502@redhat.com> Date: Sat, 7 Nov 2015 10:38:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/10/2015 06:19, Andy Lutomirski wrote: > On Tue, Oct 27, 2015 at 6:39 PM, Paolo Bonzini wrote: >> All calls to context_tracking_enter and context_tracking_exit >> are already checking context_tracking_is_enabled, except the >> context_tracking_user_enter and context_tracking_user_exit >> functions left in for the benefit of assembly calls. >> >> Pull the check up to those functions, by making them simple >> wrappers around the user_enter and user_exit inline functions. > > This makes my brain hurt. Assuming that this survives a boot with > CONFIG_CONTEXT_TRACKING_FORCE=y and CONFIG_PROVE_LOCKING=y (with the > implied CONFIG_PROVE_RCU), then: > > Acked-by: Andy Lutomirski Tested now. Paolo