Re: [PATCH 0/5] x86: Enable LASS support with vsyscall emulation
From: Dave Hansen
Date: Tue Mar 03 2026 - 11:28:01 EST
On 2/19/26 15:35, Sohil Mehta wrote:
> These patches primarily update the #GP handler to reuse the existing
> vsyscall emulation code for #PF. In XONLY mode, the faulting RIP is
> readily available and can be used to determine if the #GP was triggered
> due to a vsyscall access.
>
> In contrast, the vsyscall EMULATE mode is deprecated and not expected to
> be used by anyone. Supporting EMULATE mode with LASS would require
> complex instruction decoding in the #GP fault handler, which is not
> worth the effort. So, LASS is disabled in the rare case when someone
> absolutely needs to enable vsyscall=emulate via the command line.
So this part is actually pretty nice.
Could we forklift a bit of this into patch 3, please?