Re: [PATCH v3 1/4] x86/spec-ctrl: add logic to issue IBPB on exit to guest

2023-02-06 Thread Jan Beulich
On 26.01.2023 21:27, Andrew Cooper wrote: > On 26/01/2023 8:02 am, Jan Beulich wrote: >> On 25.01.2023 22:10, Andrew Cooper wrote: >>> On 25/01/2023 3:25 pm, Jan Beulich wrote: In order to be able to defer the context switch IBPB to the last possible point, add logic to the exit-to-guest

Re: [PATCH v3 1/4] x86/spec-ctrl: add logic to issue IBPB on exit to guest

2023-01-26 Thread Andrew Cooper
On 26/01/2023 8:02 am, Jan Beulich wrote: > On 25.01.2023 22:10, Andrew Cooper wrote: >> On 25/01/2023 3:25 pm, Jan Beulich wrote: >>> In order to be able to defer the context switch IBPB to the last >>> possible point, add logic to the exit-to-guest paths to issue the >>> barrier there, including

Re: [PATCH v3 1/4] x86/spec-ctrl: add logic to issue IBPB on exit to guest

2023-01-26 Thread Jan Beulich
On 25.01.2023 22:10, Andrew Cooper wrote: > On 25/01/2023 3:25 pm, Jan Beulich wrote: >> In order to be able to defer the context switch IBPB to the last >> possible point, add logic to the exit-to-guest paths to issue the >> barrier there, including the "IBPB doesn't flush the RSB/RAS" >>

Re: [PATCH v3 1/4] x86/spec-ctrl: add logic to issue IBPB on exit to guest

2023-01-25 Thread Andrew Cooper
On 25/01/2023 3:25 pm, Jan Beulich wrote: > In order to be able to defer the context switch IBPB to the last > possible point, add logic to the exit-to-guest paths to issue the > barrier there, including the "IBPB doesn't flush the RSB/RAS" > workaround. Since alternatives, for now at least, can't

[PATCH v3 1/4] x86/spec-ctrl: add logic to issue IBPB on exit to guest

2023-01-25 Thread Jan Beulich
In order to be able to defer the context switch IBPB to the last possible point, add logic to the exit-to-guest paths to issue the barrier there, including the "IBPB doesn't flush the RSB/RAS" workaround. Since alternatives, for now at least, can't nest, emit JMP to skip past both constructs where