summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-03-25 09:44:49 +0100
committerAvi Kivity <avi@redhat.com>2011-05-11 07:57:05 -0400
commit4051b18801f5b47bb0369feefdc80e57819d0ddf (patch)
treeac0b50efc768bbf7bfe42fcd70e9d97bf46185b9 /arch/x86/include/asm/kvm_host.h
parent8f6055cbaf68cbd9ff2692a2cfa691b43629ccd4 (diff)
downloadblackbird-op-linux-4051b18801f5b47bb0369feefdc80e57819d0ddf.tar.gz
blackbird-op-linux-4051b18801f5b47bb0369feefdc80e57819d0ddf.zip
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index e3aaa02ca032..f3a7116f802f 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -606,6 +606,7 @@ struct kvm_x86_ops {
bool (*has_wbinvd_exit)(void);
+ void (*set_tsc_khz)(struct kvm_vcpu *vcpu, u32 user_tsc_khz);
void (*write_tsc_offset)(struct kvm_vcpu *vcpu, u64 offset);
void (*get_exit_info)(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2);
OpenPOWER on IntegriCloud