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


Groups > linux.kernel > #1464717

Re: RFC: Petition Intel/AMD to add POPF_IF insn

From Denys Vlasenko <dvlasenk@redhat.com>
Newsgroups linux.kernel
Subject Re: RFC: Petition Intel/AMD to add POPF_IF insn
Date 2016-08-17 21:00 +0200
Message-ID <s7eee-4TR-1@gated-at.bofh.it> (permalink)
References <s7cP7-469-1@gated-at.bofh.it> <s7di9-4hI-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 08/17/2016 07:32 PM, Linus Torvalds wrote:
> On Wed, Aug 17, 2016 at 10:20 AM, Denys Vlasenko <dvlasenk@redhat.com> wrote:
>> Last year, a proposal was floated to avoid costly POPF.
>> In particular, each spin_unlock_irqrestore() does it,
>> a rather common operation.
>
> Quiet frankly, it takes so long for hw features that I don't think
> it's worth it for something like this.

True, it will take some ~5 years for new hardware to become
widely used.

OTOH 5 years will inevitably pass. Just like now 32-bit Linux userspace
is commonly compiled to "i686" instruction set, because
inevitably enough time has passed that you can safely assume
most people run at least Pentium Pro-level CPU, with CMOV, CMPXCHG,
etc.

If the new instruction will be implemented with "REPZ POPF" encoding,
no recompilation or alternatives will be needed for the new kernel
to run on an old CPU. On an old CPU, entire EFLAGS will be restored.
On a new one, only EFLAGS.IF.

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


Thread

RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-17 19:30 +0200
  Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 20:00 +0200
    Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-17 21:00 +0200
      Re: RFC: Petition Intel/AMD to add POPF_IF insn Andy Lutomirski <luto@amacapital.net> - 2016-08-17 21:20 +0200
        Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-17 21:30 +0200
          Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-17 21:40 +0200
            Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 22:00 +0200
          Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 21:40 +0200
            Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 23:30 +0200
              Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 23:40 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Andy Lutomirski <luto@amacapital.net> - 2016-08-17 23:50 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-18 00:40 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-18 15:30 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-19 03:00 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-19 03:10 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-19 04:30 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Paolo Bonzini <pbonzini@redhat.com> - 2016-08-19 13:00 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-18 11:30 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-18 14:20 +0200
                Re: RFC: Petition Intel/AMD to add POPF_IF insn Paolo Bonzini <pbonzini@redhat.com> - 2016-08-19 04:10 +0200
          Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 21:50 +0200
        Re: RFC: Petition Intel/AMD to add POPF_IF insn Linus Torvalds <torvalds@linux-foundation.org> - 2016-08-17 21:30 +0200
  Re: RFC: Petition Intel/AMD to add POPF_IF insn Denys Vlasenko <dvlasenk@redhat.com> - 2016-08-17 20:40 +0200

csiph-web