From: Dimitri John Ledkov Subject: [PATCH kvmtool] kvmtool: expose the TSC Deadline Timer feature to the guest Date: Tue, 29 Sep 2015 18:00:29 +0100 Message-ID: <1443546029-1202-1-git-send-email-dimitri.j.ledkov@intel.com> Cc: Will Deacon , Andre Przywara To: kvm@vger.kernel.org Return-path: Received: from mga03.intel.com ([134.134.136.65]:38710 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755402AbbI2RAd (ORCPT ); Tue, 29 Sep 2015 13:00:33 -0400 Sender: kvm-owner@vger.kernel.org List-ID: From: Arjan van de Ven 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 Signed-off-by: Dimitri John Ledkov --- 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 */ -- 2.1.4