diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-06 12:26:18 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-04 09:14:57 -0500 |
commit | caaeed95e9c216ff7fe95822f7c27ffeebd87dbc (patch) | |
tree | 31dce90a6f20a293b2b3b98dd0847f7284365816 | |
parent | 18500e3dc0254ef462c4340971049c34ebd9c56b (diff) |
x86-kvm-require-const-tsc-for-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-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 4c938da2ba00..9aac6d69bffa 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -5184,6 +5184,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; |