Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1413641

Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore

From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore
Date 2016-06-04 07:10 +0200
Message-ID <rGc0p-4AW-3@gated-at.bofh.it> (permalink)
References <rEuE9-4bg-3@gated-at.bofh.it> <rEuE9-4bg-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On May 30, 2016 5:30 AM, "Paolo Bonzini" <pbonzini@redhat.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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Andy Lutomirski <luto@amacapital.net> - 2016-06-04 07:10 +0200
  Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Paolo Bonzini <pbonzini@redhat.com> - 2016-06-06 17:50 +0200
    Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Ingo Molnar <mingo@kernel.org> - 2016-06-08 14:20 +0200
      Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Paolo Bonzini <pbonzini@redhat.com> - 2016-06-08 14:40 +0200
        Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Ingo Molnar <mingo@kernel.org> - 2016-06-08 15:00 +0200
          Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Ingo Molnar <mingo@kernel.org> - 2016-06-08 15:50 +0200
          Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Paolo Bonzini <pbonzini@redhat.com> - 2016-06-08 15:50 +0200

csiph-web