x86/time: tsc_check_writability() may need to be run a second time
authorJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2017 14:21:24 +0000 (15:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2017 14:21:24 +0000 (15:21 +0100)
commit890dc95ca90a643b59a2b67b634f70ea1f2ea3d6
tree540768a6ccb6b3b3acb3a7f8733627ee7bbb0e03
parentb857b041ee73d24fefa2dce55d23e2ff97306af2
x86/time: tsc_check_writability() may need to be run a second time

While we shouldn't remove its current invocation, we need to re-run it
for the case that the X86_FEATURE_TSC_RELIABLE feature flag has been
cleared, in order to avoid using the TSC rendezvous function in case
the TSC can't be written.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
xen/arch/x86/time.c