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)
commit857e40999e35906baa367a79137019912cfb5434
treeeacae3e4ccffd38b3e6a55b9bc6afdc7ae2c5e9a
parent4051b18801f5b47bb0369feefdc80e57819d0ddf
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