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 <arjan@linux.intel.com>
This commit is contained in:
Arjan van de Ven
2015-02-13 13:44:57 -05:00
committed by Dimitri John Ledkov
parent 5158181267
commit dcc48d65e8
+3
View File
@@ -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 */