Re: [PATCH v2 1/3] x86: Add bit definitions for Automatic IBRS

2023-05-31 Thread Alejandro Vallejo
On Tue, May 30, 2023 at 06:29:14PM +0100, Andrew Cooper wrote: > ... I've changed this on commit to just "Automatic IBRS".  The behaviour > is more far complicated than this, and anyone who wants to know needs to > read the manual extra carefully. > > For one, there's a behaviour which depends on

Re: [PATCH v2 1/3] x86: Add bit definitions for Automatic IBRS

2023-05-30 Thread Andrew Cooper
On 30/05/2023 2:58 pm, Alejandro Vallejo wrote: > This is an AMD feature to reduce the IBRS handling overhead. Once enabled, > processes running at CPL=0 are automatically IBRS-protected even if > SPEC_CTRL.IBRS is not set. Furthermore, the RAS/RSB is cleared on VMEXIT. > > The feature is exposed i

[PATCH v2 1/3] x86: Add bit definitions for Automatic IBRS

2023-05-30 Thread Alejandro Vallejo
This is an AMD feature to reduce the IBRS handling overhead. Once enabled, processes running at CPL=0 are automatically IBRS-protected even if SPEC_CTRL.IBRS is not set. Furthermore, the RAS/RSB is cleared on VMEXIT. The feature is exposed in CPUID and toggled in EFER. Signed-off-by: Alejandro Va