Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/hyperv: Don’t enable TSCInvariant on some older Hyper-V hosts
Hyper-V host builds earlier than 22621 (Windows 11 22H2) have a bug in the TSC Invariant feature that may result in the guest seeing a "slow" TSC after the Hyper-V host resumes from hiberation. As a result, time advances more slowly in the guest than in the host. When Linux programs the Hyper-V synthetic timer, the timer interrupt can occur sooner than expected or even immediately. As the guest time falls further and further behind, a timer interrupt storm and unresponsive Linux guest can result, along with excessive load on the host. Since the problem occurs only after a Hyper-V host resumes from hibernation, the scenario is primarily on Windows client devices that are running Linux guests such as WSLv2. Avoid the bug by assuming the TSC Invariant feature is not present when WSLv2 is running on these builds. Closes: microsoft/WSL#6982 Signed-off-by: Michael Kelley <[email protected]> Signed-off-by: Mitchell Levy <[email protected]>
- Loading branch information