summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-06 11:26:18 (GMT)
committerEmil Medve <Emilian.Medve@Freescale.com>2013-04-30 08:17:23 (GMT)
commit36d9a4a1e1ac725b2986f7ece0693fb1f694255e (patch)
tree78398c725e48a2832029282de16f1406733465f7 /arch/x86/kvm/x86.c
parent467a334a45ccbdd173c9d7c64323ccf1cb3848aa (diff)
downloadlinux-fsl-qoriq-36d9a4a1e1ac725b2986f7ece0693fb1f694255e.tar.xz
x86-kvm-require-const-tsc-for-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 9a51121..fb485ba 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5238,6 +5238,13 @@ int kvm_arch_init(void *opaque)
goto out;
}
+#ifdef CONFIG_PREEMPT_RT_FULL
+ if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) {
+ printk(KERN_ERR "RT requires X86_FEATURE_CONSTANT_TSC\n");
+ return -EOPNOTSUPP;
+ }
+#endif
+
r = kvm_mmu_module_init();
if (r)
goto out_free_percpu;