From dcc48d65e8f069ec0ff1f459878f22035be3d88d Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Fri, 13 Feb 2015 13:44:57 -0500 Subject: [PATCH] kvmtool: expose the TSC Deadline Timer feature to the guest with the TSC deadline timer feature, we don't need to calibrate the apic timers anymore, which saves more than 100 milliseconds of boot time. Signed-off-by: Arjan van de Ven --- x86/cpuid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x86/cpuid.c b/x86/cpuid.c index c3b67d9..1d8bd23 100644 --- a/x86/cpuid.c +++ b/x86/cpuid.c @@ -31,6 +31,9 @@ static void filter_cpuid(struct kvm_cpuid2 *kvm_cpuid) /* Set X86_FEATURE_HYPERVISOR */ if (entry->index == 0) entry->ecx |= (1 << 31); + /* Set CPUID_EXT_TSC_DEADLINE_TIMER*/ + if (entry->index == 0) + entry->ecx |= (1 << 24); break; case 6: /* Clear X86_FEATURE_EPB */