]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Add a ratio parameter to kvm_scale_tsc()
authorIlias Stamatis <ilstam@amazon.com>
Wed, 26 May 2021 18:44:11 +0000 (19:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:28 +0000 (13:09 -0400)
commit9e228c7d1f9d7d151d633654df8782d8edca2ae1
tree02b967a49fab01e80ed019161247a3b93ccfe1f5
parent4ab35cb0f26d2805b947022067f6a375bea938a3
KVM: X86: Add a ratio parameter to kvm_scale_tsc()

Sometimes kvm_scale_tsc() needs to use the current scaling ratio and
other times (like when reading the TSC from user space) it needs to use
L1's scaling ratio. Have the caller specify this by passing the ratio as
a parameter.

Signed-off-by: Ilias Stamatis <ilstam@amazon.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210526184418.28881-5-ilstam@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c