diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 699c6b89c1b4..a8dee58e8716 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -5457,6 +5457,10 @@ void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) | |||
5457 | struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, | 5457 | struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, |
5458 | unsigned int id) | 5458 | unsigned int id) |
5459 | { | 5459 | { |
5460 | if (check_tsc_unstable() && atomic_read(&kvm->online_vcpus) != 0) | ||
5461 | printk_once(KERN_WARNING | ||
5462 | "kvm: SMP vm created on host with unstable TSC; " | ||
5463 | "guest TSC will not be reliable\n"); | ||
5460 | return kvm_x86_ops->vcpu_create(kvm, id); | 5464 | return kvm_x86_ops->vcpu_create(kvm, id); |
5461 | } | 5465 | } |
5462 | 5466 | ||