Commit 7304910
committed
hyperv: Fix usage of wrong time ref MSR on x86
When 668afda ("arm64: hyperv: Fix build breakage for non-ARM64
architectures") was forward ported to 6.18, the similarly named
HV_REGISTER_TIME_REF_COUNT was used instead of HV_MSR_TIME_REF_COUNT.
The HV_REGISTER_TIME_REF_COUNT register is ARM64-specific, so when it
was used on x86, it produced garbage. This entirely breaks timekeeping
on guests without a TSC. Use HV_MSR_TIME_REF_COUNT instead, which
results to the correct MSR for the current arch.
Fixes: 668afda ("arm64: hyperv: Fix build breakage for non-ARM64 architectures")
Signed-off-by: Mitchell Levy <levymitchell0@gmail.com>1 parent ea0cd9a commit 7304910
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
0 commit comments