]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Add functions for retrieving L2 TSC fields from common code
authorIlias Stamatis <ilstam@amazon.com>
Wed, 26 May 2021 18:44:13 +0000 (19:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:28 +0000 (13:09 -0400)
commit155cd4cef11d09ad55dfeaf2f675ad2da079f750
tree5bc5f924803a7466af8b3682cbe8b5f5b5b9445e
parent24bb147ecc6f8bdb74a2a99c55592013fe910670
KVM: X86: Add functions for retrieving L2 TSC fields from common code

In order to implement as much of the nested TSC scaling logic as
possible in common code, we need these vendor callbacks for retrieving
the TSC offset and the TSC multiplier that L1 has set for L2.

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