hypervisor: do not get and set MSR_IA32_TSC for MSHV

Setting that MSR causes the reference TSC page to be disabled.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2022-11-14 22:58:05 +00:00 committed by Liu Wei
parent d3a8332282
commit 2e2ce47271

View File

@ -703,7 +703,6 @@ impl cpu::Vcpu for MshvVcpu {
msr!(msr_index::MSR_LSTAR),
msr!(msr_index::MSR_KERNEL_GS_BASE),
msr!(msr_index::MSR_SYSCALL_MASK),
msr!(msr_index::MSR_IA32_TSC),
msr_data!(msr_index::MSR_MTRRdefType, MTRR_ENABLE | MTRR_MEM_TYPE_WB),
]
.to_vec()