]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Delegate tsc-offset calculation to architecture code
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 25 Mar 2011 08:44:50 +0000 (09:44 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:05 +0000 (07:57 -0400)
commitf54d4946a2bbf553feac71619b9609d4b5294da3
treeeacae3e4ccffd38b3e6a55b9bc6afdc7ae2c5e9a
parent6a998c0ae4158c10825806de9b5cdd23c6e13c08
KVM: X86: Delegate tsc-offset calculation to architecture code

With TSC scaling in SVM the tsc-offset needs to be
calculated differently. This patch propagates this
calculation into the architecture specific modules so that
this complexity can be handled there.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c