hv1_emulator/x86.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! X86-specific HV1 definitions.
5
6/// The value returned by the Microsoft hypervisor for reads of the
7/// [`x86defs::X86X_IA32_MSR_MISC_ENABLE`] MSR.
8///
9/// This may be tweaked if performance monitoring is available.
10pub const MISC_ENABLE: x86defs::MiscEnable = x86defs::MiscEnable::new()
11 .with_fast_string(true)
12 .with_tm1(true)
13 .with_bts_unavailable(true)
14 .with_pebs_unavailable(true)
15 .with_enhanced_speedstep(true)
16 .with_mwait(true)
17 .with_xtpr_disable(true);