From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965893AbbD1MuZ (ORCPT ); Tue, 28 Apr 2015 08:50:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39167 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965866AbbD1MuT (ORCPT ); Tue, 28 Apr 2015 08:50:19 -0400 Message-ID: <553F8202.4010207@redhat.com> Date: Tue, 28 Apr 2015 08:50:10 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org CC: fweisbec@gmail.com, paulmck@linux.vnet.ibm.com Subject: Re: [PATCH] context_tracking: remove duplicate enabled check References: <1430221008-21999-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1430221008-21999-1-git-send-email-pbonzini@redhat.com> 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 04/28/2015 07:36 AM, 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. > > Signed-off-by: Paolo Bonzini Reviewed-by: Rik van Riel -- All rights reversed