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)
commit307a94c721fed1aaaeee68115df6f7fb8193b23f
tree5bc5f924803a7466af8b3682cbe8b5f5b5b9445e
parent3c0f99366e34c1b45e4908e151089a8bf93fbe71
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