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


Groups > linux.kernel > #1427027

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-20 22:50 +0200
Message-ID <rMeiR-4CK-1@gated-at.bofh.it> (permalink)
References <rM8ZQ-1ph-5@gated-at.bofh.it> <rM8ZQ-1ph-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jun 20, 2016 at 7:58 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.

You're also skipping the in_interrupt() check, but that appears to be fine.

Reviewed-by: Andy Lutomirski <luto@kernel.org>

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


Thread

[PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Paolo Bonzini <pbonzini@redhat.com> - 2016-06-20 17:10 +0200
  Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Rik van Riel <riel@redhat.com> - 2016-06-20 22:30 +0200
  Re: [PATCH 1/2] x86/entry: Avoid interrupt flag save and restore Andy Lutomirski <luto@amacapital.net> - 2016-06-20 22:50 +0200

csiph-web