diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-06 12:26:18 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2012-08-24 22:40:06 -0400 |
commit | 84fae6577b80841d11cf1ee14f76cba347dc885d (patch) | |
tree | ae4ff5edbd664939a99870e2bc327c6c531f4a79 /arch | |
parent | b36c3b242ec1b9037a9ac0b4f16205c6ecb584d0 (diff) |
x86-kvm-require-const-tsc-for-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/x86.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4fc53233ae7e..18fc87869491 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -5210,6 +5210,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; |