[PATCH v2 2/3] x86: Expose Automatic IBRS to guests

2023-05-30 Thread Alejandro Vallejo
Expose AutoIBRS to HVM guests. EFER is swapped by VMRUN, so Xen only has to make sure writes to EFER.AIBRSE are gated on the feature being exposed. Also hide EFER.AIBRSE from PV guests as they have no say in the matter. Signed-off-by: Alejandro Vallejo Reviewed-by: Andrew Cooper --- v2: * Mov

Re: [PATCH v2 2/3] x86: Expose Automatic IBRS to guests

2023-05-30 Thread Andrew Cooper
On 30/05/2023 2:58 pm, Alejandro Vallejo wrote: > Expose AutoIBRS to HVM guests. EFER is swapped by VMRUN, so Xen only has to > make sure writes to EFER.AIBRSE are gated on the feature being exposed. > > Also hide EFER.AIBRSE from PV guests as they have no say in the matter. > > Signed-off-by: Alej

Re: [PATCH v2 2/3] x86: Expose Automatic IBRS to guests

2023-05-31 Thread Alejandro Vallejo
On Tue, May 30, 2023 at 06:31:03PM +0100, Andrew Cooper wrote: > I've committed this, but made two tweaks to the commit message.  First, > "x86/hvm" in the subject because it's important context at a glance. Sure, that makes sense. > Second, I've adjusted the bit about PV guests.  The reason why w

Re: [PATCH v2 2/3] x86: Expose Automatic IBRS to guests

2023-05-31 Thread Andrew Cooper
On 31/05/2023 10:01 am, Alejandro Vallejo wrote: > On Tue, May 30, 2023 at 06:31:03PM +0100, Andrew Cooper wrote: >> I've committed this, but made two tweaks to the commit message.  First, >> "x86/hvm" in the subject because it's important context at a glance. > Sure, that makes sense. > >> Second,