diff options
| author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-27 23:29:03 -0200 |
|---|---|---|
| committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-27 23:29:15 -0200 |
| commit | b48aa97e38206a84bf8485e7c553412274708ce5 (patch) | |
| tree | 360f44bce8cf39836e916f3b5ed5c2e8849cd263 /tools/perf/scripts/python | |
| parent | KVM: x86: add kvm_arch_vcpu_postcreate callback, move TSC initialization (diff) | |
| download | linux-b48aa97e38206a84bf8485e7c553412274708ce5.tar.gz linux-b48aa97e38206a84bf8485e7c553412274708ce5.zip | |
KVM: x86: require matched TSC offsets for master clock
With master clock, a pvclock clock read calculates:
ret = system_timestamp + [ (rdtsc + tsc_offset) - tsc_timestamp ]
Where 'rdtsc' is the host TSC.
system_timestamp and tsc_timestamp are unique, one tuple
per VM: the "master clock".
Given a host with synchronized TSCs, its obvious that
guest TSC must be matched for the above to guarantee monotonicity.
Allow master clock usage only if guest TSCs are synchronized.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
