From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031269AbbD1UEZ (ORCPT ); Tue, 28 Apr 2015 16:04:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43951 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030768AbbD1UEX (ORCPT ); Tue, 28 Apr 2015 16:04:23 -0400 Message-ID: <553FE7C5.2040208@redhat.com> Date: Tue, 28 Apr 2015 16:04:21 -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. With this and your other (not yet posted) patch, run time for the kvm-unit-tests vmexit.flat vmcall test with 10 million iterations drops from 17.8 to 17.5 seconds, which is about a 1.7% speedup. -- All rights reversed