summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/kvm_svm.h
diff options
context:
space:
mode:
authorGerd Hoffmann2009-02-04 17:52:04 +0100
committerAvi Kivity2009-03-24 10:03:09 +0100
commitc807660407a695f390034e402edfe544a1d2e40c (patch)
treef362e26ed5aee6458a0f84aa60f52dfb4ea6437e /arch/x86/kvm/kvm_svm.h
parentKVM: VMX: Use kvm_mmu_page_fault() handle EPT violation mmio (diff)
downloadkernel-qcow2-linux-c807660407a695f390034e402edfe544a1d2e40c.tar.gz
kernel-qcow2-linux-c807660407a695f390034e402edfe544a1d2e40c.tar.xz
kernel-qcow2-linux-c807660407a695f390034e402edfe544a1d2e40c.zip
KVM: Fix kvmclock on !constant_tsc boxes
kvmclock currently falls apart on machines without constant tsc. This patch fixes it. Changes: * keep tsc frequency in a per-cpu variable. * handle kvmclock update using a new request flag, thus checking whenever we need an update each time we enter guest context. * use a cpufreq notifier to track frequency changes and force kvmclock updates. * send ipis to kick cpu out of guest context if needed to make sure the guest doesn't see stale values. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/kvm_svm.h')
0 files changed, 0 insertions, 0 deletions