mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-19 03:47:27 +00:00
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:
committed by
Dimitri John Ledkov
parent
5158181267
commit
dcc48d65e8
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user