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

2023-12-18 Thread Roger Pau Monné
On Mon, Dec 18, 2023 at 02:58:01PM +0100, Jan Beulich wrote: > On 18.12.2023 13:39, Roger Pau Monné wrote: > > On Tue, Feb 14, 2023 at 05:11:05PM +0100, Jan Beulich wrote: > >> In order to avoid clobbering Xen's own predictions, defer the barrier as > >> much as possible. Merely mark the CPU as

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

2023-12-18 Thread Jan Beulich
On 18.12.2023 13:39, Roger Pau Monné wrote: > On Tue, Feb 14, 2023 at 05:11:05PM +0100, Jan Beulich wrote: >> 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

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

2023-12-18 Thread Roger Pau Monné
On Tue, Feb 14, 2023 at 05:11:05PM +0100, Jan Beulich wrote: > 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. While I understand that doing the flush in

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

2023-02-14 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