Re: [PATCH v3 2/4] x86/spec-ctrl: defer context-switch IBPB until guest entry

2023-02-06 Thread Jan Beulich
On 26.01.2023 21:43, Andrew Cooper wrote: > On 25/01/2023 3:26 pm, Jan Beulich wrote: >> In order to avoid clobbering Xen's own predictions, defer the barrier as >> much as possible. > > I can't actually think of a case where this matters.  We've done a > reasonable amount of work to get rid of in

Re: [PATCH v3 2/4] x86/spec-ctrl: defer context-switch IBPB until guest entry

2023-01-26 Thread Andrew Cooper
On 25/01/2023 3:26 pm, Jan Beulich wrote: > In order to avoid clobbering Xen's own predictions, defer the barrier as > much as possible. I can't actually think of a case where this matters.  We've done a reasonable amount of work to get rid of indirect branches, and rets were already immaterial be

[PATCH v3 2/4] x86/spec-ctrl: defer context-switch IBPB until guest entry

2023-01-25 Thread Jan Beulich
In order to avoid clobbering Xen's own predictions, defer the barrier as much as possible. Merely mark the CPU as needing a barrier issued the next time we're exiting to guest context. Suggested-by: Andrew Cooper Signed-off-by: Jan Beulich --- I couldn't find any sensible (central/unique) place