lkml.org 
[lkml]   [2017]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3 14/19] x86/entry/64: Create a percpu SYSCALL entry trampoline
On Fri, Nov 24, 2017 at 3:39 AM, David Laight <David.Laight@aculab.com> wrote:
> From: Andy Lutomirski
>> Sent: 24 November 2017 04:33
> ...
>> + /*
>> + * x86 lacks a near absolute jump, and we can't jump to the real
>> + * entry text with a relative jump, so we fake it using retq.
>> + */
>> + pushq $entry_SYSCALL_64_after_hwframe
>> + retq
>
> Don't some of the cpus have hardware logic that follows call and return?
> The above will break that logic and slow things down (unless it is an
> expected sequence).

Indeed, and it makes a *huge* difference.

>
> Is there a scratch register that can be used for an indirect jump?

No, but I can fudge it.

>
> David
>

\
 
 \ /
  Last update: 2017-12-01 08:43    [W:0.096 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site