diff options
author | Oliver Upton <oupton@google.com> | 2021-09-16 18:15:37 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-18 14:43:45 -0400 |
commit | 58d4277be9b66d8048054c8e57214a86b6b15da9 (patch) | |
tree | 59e2322a2b600e6559b31347493372e503957352 /arch/x86/include/uapi | |
parent | 869b44211adc878be7149cc4ae57207f924f7390 (diff) | |
download | linux-58d4277be9b66d8048054c8e57214a86b6b15da9.tar.gz linux-58d4277be9b66d8048054c8e57214a86b6b15da9.tar.bz2 linux-58d4277be9b66d8048054c8e57214a86b6b15da9.zip |
KVM: x86: Refactor tsc synchronization code
Refactor kvm_synchronize_tsc to make a new function that allows callers
to specify TSC parameters (offset, value, nanoseconds, etc.) explicitly
for the sake of participating in TSC synchronization.
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20210916181538.968978-7-oupton@google.com>
[Make sure kvm->arch.cur_tsc_generation and vcpu->arch.this_tsc_generation are
equal at the end of __kvm_synchronize_tsc, if matched is false. Reported by
Maxim Levitsky. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/uapi')
0 files changed, 0 insertions, 0 deletions