Searched refs:mtrr_state (Results 1 – 6 of 6) sorted by relevance
39 return &vcpu->arch.mtrr_state.var_ranges[index]; in var_mtrr_msr_to_range()104 static bool mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in mtrr_is_enabled() argument106 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_E); in mtrr_is_enabled()109 static bool fixed_mtrr_is_enabled(struct kvm_mtrr *mtrr_state) in fixed_mtrr_is_enabled() argument111 return !!(mtrr_state->deftype & IA32_MTRR_DEF_TYPE_FE); in fixed_mtrr_is_enabled()114 static u8 mtrr_default_type(struct kvm_mtrr *mtrr_state) in mtrr_default_type() argument116 return mtrr_state->deftype & IA32_MTRR_DEF_TYPE_TYPE_MASK; in mtrr_default_type()320 struct kvm_mtrr *mtrr_state = &vcpu->arch.mtrr_state; in update_mtrr() local326 if (!mtrr_is_enabled(mtrr_state) && msr != MSR_MTRRdefType) in update_mtrr()331 if (!fixed_mtrr_is_enabled(mtrr_state)) in update_mtrr()[all …]
89 struct mtrr_state_type mtrr_state; variable90 EXPORT_SYMBOL_GPL(mtrr_state);134 struct mtrr_var_range *mtrr = mtrr_state.var_ranges + reg; in get_var_mtrr_state()353 if (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED) { in mtrr_build_map()360 type = mtrr_state.fixed_ranges[0]; in mtrr_build_map()367 if (mtrr_state.fixed_ranges[i] != type) { in mtrr_build_map()370 type = mtrr_state.fixed_ranges[i]; in mtrr_build_map()402 if (!mtrr_state.enabled || !new_size) { in mtrr_copy_map()415 mtrr_state.enabled = 0; in mtrr_copy_map()468 mtrr_state.var_ranges[i] = var[i]; in mtrr_overwrite_state()[all …]
62 extern struct mtrr_state_type mtrr_state;
561 if (!generic_mtrrs && mtrr_state.enabled) { in mtrr_bp_init()612 if (!mtrr_enabled() || !mtrr_state.have_fixed) in mtrr_save_state()
95 if (base < (1<<(20-PAGE_SHIFT)) && mtrr_state.have_fixed && in x86_get_mtrr_mem_range()96 (mtrr_state.enabled & MTRR_STATE_MTRR_ENABLED) && in x86_get_mtrr_mem_range()97 (mtrr_state.enabled & MTRR_STATE_MTRR_FIXED_ENABLED)) { in x86_get_mtrr_mem_range()
901 struct kvm_mtrr mtrr_state; member