KVM: x86: allow TSC deadline timer on all hosts
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 8 Jan 2015 14:59:30 +0000 (15:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jan 2015 09:23:54 +0000 (10:23 +0100)
Emulation does not utilize the feature.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c

index 49ecda7ca9581349fb1cdc8c7962632f61b14e15..98930c64b06e4f00649bc05ec4dfc0a5ac4c3a06 100644 (file)
@@ -2752,6 +2752,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
        case KVM_CAP_READONLY_MEM:
        case KVM_CAP_HYPERV_TIME:
        case KVM_CAP_IOAPIC_POLARITY_IGNORED:
+       case KVM_CAP_TSC_DEADLINE_TIMER:
 #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
        case KVM_CAP_ASSIGN_DEV_IRQ:
        case KVM_CAP_PCI_2_3:
@@ -2790,9 +2791,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
        case KVM_CAP_TSC_CONTROL:
                r = kvm_has_tsc_control;
                break;
-       case KVM_CAP_TSC_DEADLINE_TIMER:
-               r = boot_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER);
-               break;
        default:
                r = 0;
                break;