diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-06 12:26:18 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-13 11:01:51 -0500 |
commit | ac778faf2ca93544231884f2aab958b80d4097b1 (patch) | |
tree | 9f67b07f0e33ee83e49be61a3b72a985650a3b39 /arch/x86 | |
parent | 121dfebbb3cf4d61131967264b2bd8c4921f6456 (diff) |
x86-kvm-require-const-tsc-for-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-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 4044ce0bf7c1..47337cf39b3f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4882,6 +4882,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; |