summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorYunhong Jiang <yunhong.jiang@intel.com>2016-06-13 14:19:59 -0700
committerYunhong Jiang <yunhong.jiang@linux.intel.com>2016-07-18 08:07:29 -0700
commit09c7dd2e0b05c5bc2def37e525a98e6b344d56f5 (patch)
tree7f2969dfb2b258c21f9598136a239e56dd7b0c3e /kernel/arch/x86/kvm/x86.c
parentfd047d7c73bfddb06d19aa4ca182c5c0f72a3304 (diff)
kvm: vmx: hook preemption timer support
Hook the VMX preemption timer to the "hv timer" functionality added by the previous patch. This includes: checking if the feature is supported, if the feature is broken on the CPU, the hooks to setup/clean the VMX preemption timer, arming the timer on vmentry and handling the vmexit. A module parameter states if the VMX preemption timer should be utilized. Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> [Move hv_deadline_tsc to struct vcpu_vmx, use -1 as the "unset" value. Put all VMX bits here. Enable it by default #yolo. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Change-Id: Icb8e0b853eedce3d52c394e510fa14d2cdd432e9 upstream-status: backport Signed-off-by: Yunhong Jiang <yunhong.jiang@linux.intel.com>
Diffstat (limited to 'kernel/arch/x86/kvm/x86.c')
-rw-r--r--kernel/arch/x86/kvm/x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/arch/x86/kvm/x86.c b/kernel/arch/x86/kvm/x86.c
index e3e1a8c1b..c7695cea4 100644
--- a/kernel/arch/x86/kvm/x86.c
+++ b/kernel/arch/x86/kvm/x86.c
@@ -113,7 +113,8 @@ u8 __read_mostly kvm_tsc_scaling_ratio_frac_bits;
EXPORT_SYMBOL_GPL(kvm_tsc_scaling_ratio_frac_bits);
u64 __read_mostly kvm_max_tsc_scaling_ratio;
EXPORT_SYMBOL_GPL(kvm_max_tsc_scaling_ratio);
-static u64 __read_mostly kvm_default_tsc_scaling_ratio;
+u64 __read_mostly kvm_default_tsc_scaling_ratio;
+EXPORT_SYMBOL_GPL(kvm_default_tsc_scaling_ratio);
/* tsc tolerance in parts per million - default to 1/2 of the NTP threshold */
static u32 __read_mostly tsc_tolerance_ppm = 250;