Searched refs:mtrr_state (Results 1 – 5 of 5) sorted by relevance
96 static bool mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in mtrr_is_enabled() argument98 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_E); in mtrr_is_enabled()101 static bool fixed_mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in fixed_mtrr_is_enabled() argument103 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_FE); in fixed_mtrr_is_enabled()106 static u8 mtrr_default_type(struct kvm_mtrr *mtrr_state) in mtrr_default_type() argument108 return mtrr_state->deftype & IA32_MTRR_DEF_TYPE_TYPE_MASK; in mtrr_default_type()312 struct kvm_mtrr *mtrr_state = &vcpu->arch.mtrr_state; in update_mtrr() local320 if (!mtrr_is_enabled(mtrr_state) && msr != MSR_MTRRdefType) in update_mtrr()325 if (!fixed_mtrr_is_enabled(mtrr_state)) in update_mtrr()333 var_mtrr_range(&mtrr_state->var_ranges[index], &start, &end); in update_mtrr()[all …]
38 struct mtrr_state_type mtrr_state; variable39 EXPORT_SYMBOL_GPL(mtrr_state);131 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup_fixed()136 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup_fixed()142 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup_fixed()174 if (!(mtrr_state.var_ranges[i].mask_lo & (1 << 11))) in mtrr_type_lookup_variable()177 base = (((u64)mtrr_state.var_ranges[i].base_hi) << 32) + in mtrr_type_lookup_variable()178 (mtrr_state.var_ranges[i].base_lo & PAGE_MASK); in mtrr_type_lookup_variable()179 mask = (((u64)mtrr_state.var_ranges[i].mask_hi) << 32) + in mtrr_type_lookup_variable()180 (mtrr_state.var_ranges[i].mask_lo & PAGE_MASK); in mtrr_type_lookup_variable()[all …]
68 extern struct mtrr_state_type mtrr_state;
99 if (base < (1<<(20-PAGE_SHIFT)) && mtrr_state.have_fixed && in x86_get_mtrr_mem_range()100 (mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED) && in x86_get_mtrr_mem_range()101 (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED)) { in x86_get_mtrr_mem_range()
692 struct kvm_mtrr mtrr_state; member