]> 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)
commitb5ff3a70e668932d670bec1053802fa0803b825c
treeac0b50efc768bbf7bfe42fcd70e9d97bf46185b9
parentea2c1a91e07ef6ae7df90604bf8a88c9da201875
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