Re: [Xen-devel] [PATCH v2 1/5] x86/time: Alter tsc_set_info() to return an error value

2018-11-20 Thread Jan Beulich
>>> On 20.11.18 at 15:36, wrote: > Currently, tsc_set_info() performs no parameter checking, and an invalid > tsc_mode goes largely unnoticed. Fix it to reject invalid tsc_modes with > -EINVAL, and update the callers to check the return value. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan

[Xen-devel] [PATCH v2 1/5] x86/time: Alter tsc_set_info() to return an error value

2018-11-20 Thread Andrew Cooper
Currently, tsc_set_info() performs no parameter checking, and an invalid tsc_mode goes largely unnoticed. Fix it to reject invalid tsc_modes with -EINVAL, and update the callers to check the return value. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné v2: *