Re: [PATCH] x86/asm/entry/32: Restore %ss before SYSRETL if necessary

From: H. Peter Anvin
Date: Thu Apr 23 2015 - 18:53:08 EST


On 04/23/2015 03:38 PM, Andy Lutomirski wrote:
>>
>> Because there are way more sysrets than context switches, and Linux is
>> particularly sensitive to system call latency, by design.
>

Just to clarify: why would Linux be more sensitive to system call by
design? It enables much simpler APIs and avoids hacks like sending down
a syscall task list (which was genuinely proposed at one point.) If
kernel entry/exit is too expensive, then the APIs get more complex
because they *have* to do everything in the smallest number of system calls.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/