Re: [PATCH] x86/spec-ctrl: Skip RSB overwriting when safe to do so

2021-08-25 Thread Andrew Cooper
On 25/08/2021 15:36, Jan Beulich wrote: > On 25.08.2021 14:12, Andrew Cooper wrote: >> On 24/08/2021 14:04, Jan Beulich wrote: >>> On 19.08.2021 18:26, Andrew Cooper wrote: In some configurations, it is safe to not overwrite the RSB on entry to Xen. Both Intel and AMD have guideline

Re: [PATCH] x86/spec-ctrl: Skip RSB overwriting when safe to do so

2021-08-25 Thread Jan Beulich
On 25.08.2021 14:12, Andrew Cooper wrote: > On 24/08/2021 14:04, Jan Beulich wrote: >> On 19.08.2021 18:26, Andrew Cooper wrote: >>> In some configurations, it is safe to not overwrite the RSB on entry to Xen. >>> Both Intel and AMD have guidelines in this area, because of the performance >>> diffe

Re: [PATCH] x86/spec-ctrl: Skip RSB overwriting when safe to do so

2021-08-25 Thread Andrew Cooper
On 24/08/2021 14:04, Jan Beulich wrote: > On 19.08.2021 18:26, Andrew Cooper wrote: >> In some configurations, it is safe to not overwrite the RSB on entry to Xen. >> Both Intel and AMD have guidelines in this area, because of the performance >> difference it makes for native kernels. > I don't thi

Re: [PATCH] x86/spec-ctrl: Skip RSB overwriting when safe to do so

2021-08-24 Thread Jan Beulich
On 19.08.2021 18:26, Andrew Cooper wrote: > In some configurations, it is safe to not overwrite the RSB on entry to Xen. > Both Intel and AMD have guidelines in this area, because of the performance > difference it makes for native kernels. I don't think I've come across AMD's guidelines - would y

[PATCH] x86/spec-ctrl: Skip RSB overwriting when safe to do so

2021-08-19 Thread Andrew Cooper
In some configurations, it is safe to not overwrite the RSB on entry to Xen. Both Intel and AMD have guidelines in this area, because of the performance difference it makes for native kernels. A simple microperf test, measuring the amount of time a XENVER_version hypercall takes, shows the followi