Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions arch/x86/hyperv/hv_vtl.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ void __init hv_vtl_init_platform(void)
{
pr_info("Linux runs in Hyper-V Virtual Trust Level\n");

/*
* Disable TSC_ADJUST so that the periodic TSC sync check timer
* (start_sync_check_timer) and related TSC adjustment logic are
* skipped. The TSC exposed via Hyper-V will be consistent across
* processors.
*/
setup_clear_cpu_cap(X86_FEATURE_TSC_ADJUST);

x86_init.resources.probe_roms = x86_init_noop;
/* There is no paravisor present if we are here. */
if (hv_isolation_type_tdx()) {
Expand Down
Loading