Skip to content

Commit 4c27625

Browse files
Wanpeng Libonzini
authored andcommitted
KVM: X86: Lower the default timer frequency limit to 200us
Anthoine reported: The period used by Windows change over time but it can be 1 milliseconds or less. I saw the limit_periodic_timer_frequency print so 500 microseconds is sometimes reached. As suggested by Paolo, lower the default timer frequency limit to a smaller interval of 200 us (5000 Hz) to leave some headroom. This is required due to Windows 10 changing the scheduler tick limit from 1024 Hz to 2048 Hz. Reported-by: Anthoine Bourgeois <[email protected]> Suggested-by: Paolo Bonzini <[email protected]> Reviewed-by: Darren Kenny <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Radim Krčmář <[email protected]> Cc: Anthoine Bourgeois <[email protected]> Cc: Darren Kenny <[email protected]> Cc: Jan Kiszka <[email protected]> Signed-off-by: Wanpeng Li <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 64f7a11 commit 4c27625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module_param(ignore_msrs, bool, S_IRUGO | S_IWUSR);
114114
static bool __read_mostly report_ignored_msrs = true;
115115
module_param(report_ignored_msrs, bool, S_IRUGO | S_IWUSR);
116116

117-
unsigned int min_timer_period_us = 500;
117+
unsigned int min_timer_period_us = 200;
118118
module_param(min_timer_period_us, uint, S_IRUGO | S_IWUSR);
119119

120120
static bool __read_mostly kvmclock_periodic_sync = true;

0 commit comments

Comments
 (0)