Home
last modified time | relevance | path

Searched refs:vmx_misc (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/arch/x86/include/asm/
Dvmx.h144 static inline int vmx_misc_preemption_timer_rate(u64 vmx_misc) in vmx_misc_preemption_timer_rate() argument
146 return vmx_misc & VMX_MISC_PREEMPTION_TIMER_RATE_MASK; in vmx_misc_preemption_timer_rate()
149 static inline int vmx_misc_cr3_count(u64 vmx_misc) in vmx_misc_cr3_count() argument
151 return (vmx_misc & GENMASK_ULL(24, 16)) >> 16; in vmx_misc_cr3_count()
154 static inline int vmx_misc_max_msr(u64 vmx_misc) in vmx_misc_max_msr() argument
156 return (vmx_misc & GENMASK_ULL(27, 25)) >> 25; in vmx_misc_max_msr()
159 static inline int vmx_misc_mseg_revid(u64 vmx_misc) in vmx_misc_mseg_revid() argument
161 return (vmx_misc & GENMASK_ULL(63, 32)) >> 32; in vmx_misc_mseg_revid()
/linux-6.1.9/arch/x86/kvm/vmx/
Dnested.c878 u64 vmx_misc = vmx_control_msr(vmx->nested.msrs.misc_low, in nested_vmx_max_atomic_switch_msrs() local
881 return (vmx_misc_max_msr(vmx_misc) + 1) * VMX_MISC_MSR_LIST_MULTIPLIER; in nested_vmx_max_atomic_switch_msrs()
1272 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc() local
1275 if (!is_bitwise_subset(vmx_misc, data, feature_and_reserved_bits)) in vmx_restore_vmx_misc()
1281 vmx_misc_preemption_timer_rate(vmx_misc)) in vmx_restore_vmx_misc()
1284 if (vmx_misc_cr3_count(data) > vmx_misc_cr3_count(vmx_misc)) in vmx_restore_vmx_misc()
1287 if (vmx_misc_max_msr(data) > vmx_misc_max_msr(vmx_misc)) in vmx_restore_vmx_misc()
1290 if (vmx_misc_mseg_revid(data) != vmx_misc_mseg_revid(vmx_misc)) in vmx_restore_vmx_misc()