Home
last modified time | relevance | path

Searched refs:mtrr_state (Results 1 – 5 of 5) sorted by relevance

/arch/x86/kernel/cpu/mtrr/
Dgeneric.c33 struct mtrr_state_type mtrr_state = {}; variable
34 EXPORT_SYMBOL_GPL(mtrr_state);
59 if (!mtrr_state.enabled) in mtrr_type_lookup()
66 if (mtrr_state.have_fixed && (start < 0x100000)) { in mtrr_type_lookup()
72 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
76 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
80 return mtrr_state.fixed_ranges[idx]; in mtrr_type_lookup()
89 if (!(mtrr_state.enabled & 2)) { in mtrr_type_lookup()
90 return mtrr_state.def_type; in mtrr_type_lookup()
97 if (!(mtrr_state.var_ranges[i].mask_lo & (1 << 11))) in mtrr_type_lookup()
[all …]
Dmain.c577 static struct mtrr_value mtrr_state[MTRR_MAX_VAR_RANGES]; variable
585 &mtrr_state[i].lbase, in mtrr_save()
586 &mtrr_state[i].lsize, in mtrr_save()
587 &mtrr_state[i].ltype); in mtrr_save()
597 if (mtrr_state[i].lsize) in mtrr_restore()
599 mtrr_state[i].lbase, in mtrr_restore()
600 mtrr_state[i].lsize, in mtrr_restore()
601 mtrr_state[i].ltype); in mtrr_restore()
/arch/x86/kvm/
Dmmu.c1514 static int get_mtrr_type(struct mtrr_state_type *mtrr_state, in get_mtrr_type() argument
1522 if (!mtrr_state->enabled) in get_mtrr_type()
1529 if (mtrr_state->have_fixed && (start < 0x100000)) { in get_mtrr_type()
1535 return mtrr_state->fixed_ranges[idx]; in get_mtrr_type()
1539 return mtrr_state->fixed_ranges[idx]; in get_mtrr_type()
1543 return mtrr_state->fixed_ranges[idx]; in get_mtrr_type()
1552 if (!(mtrr_state->enabled & 2)) in get_mtrr_type()
1553 return mtrr_state->def_type; in get_mtrr_type()
1559 if (!(mtrr_state->var_ranges[i].mask_lo & (1 << 11))) in get_mtrr_type()
1562 base = (((u64)mtrr_state->var_ranges[i].base_hi) << 32) + in get_mtrr_type()
[all …]
Dx86.c658 u64 *p = (u64 *)&vcpu->arch.mtrr_state.fixed_ranges; in set_msr_mtrr()
664 vcpu->arch.mtrr_state.def_type = data; in set_msr_mtrr()
665 vcpu->arch.mtrr_state.enabled = (data & 0xc00) >> 10; in set_msr_mtrr()
682 (u64 *)&vcpu->arch.mtrr_state.var_ranges[idx].base_lo; in set_msr_mtrr()
685 (u64 *)&vcpu->arch.mtrr_state.var_ranges[idx].mask_lo; in set_msr_mtrr()
785 u64 *p = (u64 *)&vcpu->arch.mtrr_state.fixed_ranges; in get_msr_mtrr()
791 *pdata = vcpu->arch.mtrr_state.def_type + in get_msr_mtrr()
792 (vcpu->arch.mtrr_state.enabled << 10); in get_msr_mtrr()
809 (u64 *)&vcpu->arch.mtrr_state.var_ranges[idx].base_lo; in get_msr_mtrr()
812 (u64 *)&vcpu->arch.mtrr_state.var_ranges[idx].mask_lo; in get_msr_mtrr()
[all …]
/arch/x86/include/asm/
Dkvm_host.h339 struct mtrr_state_type mtrr_state; member