[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrUeAi7F2o3EGhOjEzWArO6P-AzoU1a+SsJ2O9060ELKaw@mail.gmail.com>
Date: Fri, 3 Jun 2016 22:07:34 -0700
From: Andy Lutomirski <luto@...capital.net>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org.com>,
"H. Peter Anvin" <hpa@...or.com>, X86 ML <x86@...nel.org>,
Rik van Riel <riel@...hat.com>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore
On May 30, 2016 5:30 AM, "Paolo Bonzini" <pbonzini@...hat.com> wrote:
>
> Thanks to all the work that was done by Andy Lutomirski and others,
> enter_from_user_mode and prepare_exit_to_usermode are now called only with
> interrupts disabled. Let's provide them a version of user_enter/user_exit
> that skips saving and restoring the interrupt flag.
> +/* Called with interrupts disabled. */
> +static inline void __user_enter(void)
> +{
> + if (context_tracking_is_enabled())
> + __context_tracking_enter(CONTEXT_USER);
> +
> +}
Would user_enter_irqs_off be a better name?
--Andy
Powered by blists - more mailing lists