Home
last modified time | relevance | path

Searched refs:mtrr_cap (Results 1 – 6 of 6) sorted by relevance

/xen/tools/firmware/hvmloader/
A Dcacheattr.c60 uint64_t mtrr_cap, mtrr_def, content, addr_mask; in cacheattr_init() local
73 mtrr_cap = rdmsr(MSR_MTRRcap); in cacheattr_init()
77 if ( mtrr_cap & (1u << 8) ) in cacheattr_init()
84 if ( mtrr_cap & (1u << 10) ) /* WC supported? */ in cacheattr_init()
96 nr_var_ranges = (uint8_t)mtrr_cap; in cacheattr_init()
/xen/xen/arch/x86/hvm/
A Dmtrr.c127 is_hardware_domain(v->domain) ? MASK_EXTR(mtrr_state.mtrr_cap, in hvm_vcpu_cacheattr_init()
145 m->mtrr_cap = (1u << 10) | (1u << 8) | num_var_ranges; in hvm_vcpu_cacheattr_init()
203 unsigned int seg, num_var_ranges = MASK_EXTR(m->mtrr_cap, MTRRcap_VCNT); in get_mtrr_type()
458 if ( (index / 2) >= MASK_EXTR(m->mtrr_cap, MTRRcap_VCNT) ) in mtrr_var_range_msr_set()
503 unsigned int num_var_ranges = MASK_EXTR(md->mtrr_cap, MTRRcap_VCNT); in mtrr_pat_not_equal()
519 if ( num_var_ranges != MASK_EXTR(ms->mtrr_cap, MTRRcap_VCNT) || in mtrr_pat_not_equal()
699 .msr_mtrr_cap = mtrr_state->mtrr_cap, in hvm_save_mtrr_msr()
759 mtrr_state->mtrr_cap = hw_mtrr.msr_mtrr_cap; in hvm_load_mtrr_msr()
A Dhvm.c3512 *msr_content = v->arch.hvm.mtrr.mtrr_cap; in hvm_msr_read_intercept()
3547 MASK_EXTR(v->arch.hvm.mtrr.mtrr_cap, MTRRcap_VCNT) ) in hvm_msr_read_intercept()
3550 2 * MASK_EXTR(v->arch.hvm.mtrr.mtrr_cap, in hvm_msr_read_intercept()
3690 MASK_EXTR(v->arch.hvm.mtrr.mtrr_cap, MTRRcap_VCNT)) || in hvm_msr_write_intercept()
/xen/xen/arch/x86/
A De820.c424 uint64_t mtrr_cap, mtrr_def, addr_mask, base, mask, top; in mtrr_top_of_ram() local
454 rdmsrl(MSR_MTRRcap, mtrr_cap); in mtrr_top_of_ram()
458 printk(" MTRR cap: %"PRIx64" type: %"PRIx64"\n", mtrr_cap, mtrr_def); in mtrr_top_of_ram()
469 for ( i = 0; i < (uint8_t)mtrr_cap; i++ ) in mtrr_top_of_ram()
/xen/xen/include/asm-x86/
A Dmtrr.h61 u64 mtrr_cap; member
/xen/xen/arch/x86/cpu/mtrr/
A Dgeneric.c58 unsigned int num_var_ranges = MASK_EXTR(m->mtrr_cap, MTRRcap_VCNT); in is_var_mtrr_overlapped()
120 rdmsrl(MSR_MTRRcap, mtrr_state.mtrr_cap); in get_mtrr_state()

Completed in 19 milliseconds