All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	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
Date: Tue, 28 Apr 2015 16:04:21 -0400	[thread overview]
Message-ID: <553FE7C5.2040208@redhat.com> (raw)
In-Reply-To: <1430221008-21999-1-git-send-email-pbonzini@redhat.com>

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

      parent reply	other threads:[~2015-04-28 20:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28 11:36 [PATCH] context_tracking: remove duplicate enabled check Paolo Bonzini
2015-04-28 12:50 ` Rik van Riel
2015-04-28 20:04 ` Rik van Riel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=553FE7C5.2040208@redhat.com \
    --to=riel@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.