aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2022-06-01 16:43:22 +0200
committerPaolo Bonzini <[email protected]>2022-06-07 11:28:50 -0400
commiteae260be3a0111a28fe95923e117a55dddec0384 (patch)
tree3e529bd5b529778bca2cffb7b0b7e6f8b07eccac /scripts/gdb/linux/timerlist.py
parent5ba7c4c6d1c7af47a916f728bb5940669684a087 (diff)
KVM: selftests: Make hyperv_clock selftest more stable
hyperv_clock doesn't always give a stable test result, especially with AMD CPUs. The test compares Hyper-V MSR clocksource (acquired either with rdmsr() from within the guest or KVM_GET_MSRS from the host) against rdtsc(). To increase the accuracy, increase the measured delay (done with nop loop) by two orders of magnitude and take the mean rdtsc() value before and after rdmsr()/KVM_GET_MSRS. Reported-by: Maxim Levitsky <[email protected]> Signed-off-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Maxim Levitsky <[email protected]> Tested-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions