]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Implement call-back to propagate virtual_tsc_khz
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 25 Mar 2011 08:44:49 +0000 (09:44 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:05 +0000 (07:57 -0400)
commit6a998c0ae4158c10825806de9b5cdd23c6e13c08
treeac0b50efc768bbf7bfe42fcd70e9d97bf46185b9
parentb2f23241871b6f78b0f91a46f6f03726bf9fe9cf
KVM: X86: Implement call-back to propagate virtual_tsc_khz

This patch implements a call-back into the architecture code
to allow the propagation of changes to the virtual tsc_khz
of the vcpu.
On SVM it updates the tsc_ratio variable, on VMX it does
nothing.

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