KVM: Allow adjust_tsc_offset to be in host or guest cycles
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 3 Feb 2012 17:43:55 +0000 (15:43 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:10:07 +0000 (14:10 +0200)
commitf1e2b26003c41e581243c09ceed7567677449468
tree9c6dc330959815651611bf9636c401ba24cd6cd9
parent6f526ec5383dcd5fa5ffc7b3ac1d62099a0b46ad
KVM: Allow adjust_tsc_offset to be in host or guest cycles

Redefine the API to take a parameter indicating whether an
adjustment is in host or guest cycles.

Signed-off-by: Zachary Amsden <zamsden@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.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