summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/kvm_timer.h
diff options
context:
space:
mode:
authorLiu, Jinsong <jinsong.liu@intel.com>2011-09-22 16:55:52 +0800
committerAvi Kivity <avi@redhat.com>2011-10-05 15:34:56 +0200
commita3e06bbe8445f57eb949e6474c5a9b30f24d2057 (patch)
treefc6f43d1c4424a5bdab1e39fe1e29e8b3ca47ae3 /arch/x86/kvm/kvm_timer.h
parentb90dfb0419a79a90395e04fee3fbda3c12ba8237 (diff)
downloadop-kernel-dev-a3e06bbe8445f57eb949e6474c5a9b30f24d2057.zip
op-kernel-dev-a3e06bbe8445f57eb949e6474c5a9b30f24d2057.tar.gz
KVM: emulate lapic tsc deadline timer for guest
This patch emulate lapic tsc deadline timer for guest: Enumerate tsc deadline timer capability by CPUID; Enable tsc deadline timer mode by lapic MMIO; Start tsc deadline timer by WRMSR; [jan: use do_div()] [avi: fix for !irqchip_in_kernel()] [marcelo: another fix for !irqchip_in_kernel()] Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/kvm_timer.h')
-rw-r--r--arch/x86/kvm/kvm_timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/kvm_timer.h b/arch/x86/kvm/kvm_timer.h
index 64bc6ea..497dbaa 100644
--- a/arch/x86/kvm/kvm_timer.h
+++ b/arch/x86/kvm/kvm_timer.h
@@ -2,6 +2,8 @@
struct kvm_timer {
struct hrtimer timer;
s64 period; /* unit: ns */
+ u32 timer_mode_mask;
+ u64 tscdeadline;
atomic_t pending; /* accumulated triggered timers */
bool reinject;
struct kvm_timer_ops *t_ops;
OpenPOWER on IntegriCloud