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


Groups > linux.kernel > #1357568 > unrolled thread

Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on kernel entry and exit

Started byAndy Lutomirski <luto@amacapital.net>
First post2016-03-14 20:30 +0100
Last post2016-03-15 10:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on  kernel entry and exit Andy Lutomirski <luto@amacapital.net> - 2016-03-14 20:30 +0100
    Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on  kernel entry and exit Paolo Bonzini <pbonzini@redhat.com> - 2016-03-15 10:00 +0100

#1357568 — Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on kernel entry and exit

FromAndy Lutomirski <luto@amacapital.net>
Date2016-03-14 20:30 +0100
SubjectRe: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on kernel entry and exit
Message-ID<rcGlH-86m-5@gated-at.bofh.it>
On Tue, Oct 27, 2015 at 10:22 PM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Tue, Oct 27, 2015 at 6:39 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> x86 always calls user_enter and user_exit with interrupt disabled.
>> Therefore, it is not necessary to check for exceptions, nor to
>> save/restore the IRQ state, when context tracking functions are
>> called by guest_enter and guest_exit.
>>
>> Use the previously introduced __context_tracking_entry and
>> __context_tracking_exit.
>
> x86 isn't ready for this yet.  We could do a quick-and-dirty fix with
> explicit IRQs-on-and-off much protected by the static key, or we could
> just wait until I finish the syscall cleanup.  I favor the latter, but
> you're all welcome to do the former and I'll review it.
>

Once Linus pulls tip:x86/asm, x86 should be ready for this.  Want to try again?

--Andy

[toc] | [next] | [standalone]


#1357921

FromPaolo Bonzini <pbonzini@redhat.com>
Date2016-03-15 10:00 +0100
Message-ID<rcSZB-88c-31@gated-at.bofh.it>
In reply to#1357568

On 14/03/2016 20:23, Andy Lutomirski wrote:
> On Tue, Oct 27, 2015 at 10:22 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Tue, Oct 27, 2015 at 6:39 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>> x86 always calls user_enter and user_exit with interrupt disabled.
>>> Therefore, it is not necessary to check for exceptions, nor to
>>> save/restore the IRQ state, when context tracking functions are
>>> called by guest_enter and guest_exit.
>>>
>>> Use the previously introduced __context_tracking_entry and
>>> __context_tracking_exit.
>>
>> x86 isn't ready for this yet.  We could do a quick-and-dirty fix with
>> explicit IRQs-on-and-off much protected by the static key, or we could
>> just wait until I finish the syscall cleanup.  I favor the latter, but
>> you're all welcome to do the former and I'll review it.
>>
> 
> Once Linus pulls tip:x86/asm, x86 should be ready for this.  Want to try again?

Yup, it's on my todo list. :)

Paolo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web