/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/ |
D | apic.c | 13 rdmsr(MSR_IA32_APICBASE) & in apic_disable() 19 uint64_t val = rdmsr(MSR_IA32_APICBASE); in xapic_enable() 25 rdmsr(MSR_IA32_APICBASE) | MSR_IA32_APICBASE_ENABLE); in xapic_enable() 41 wrmsr(MSR_IA32_APICBASE, rdmsr(MSR_IA32_APICBASE) | in x2apic_enable()
|
D | vmx.c | 141 cr0 &= rdmsr(MSR_IA32_VMX_CR0_FIXED1); in prepare_for_vmx_operation() 142 cr0 |= rdmsr(MSR_IA32_VMX_CR0_FIXED0); in prepare_for_vmx_operation() 146 cr4 &= rdmsr(MSR_IA32_VMX_CR4_FIXED1); in prepare_for_vmx_operation() 147 cr4 |= rdmsr(MSR_IA32_VMX_CR4_FIXED0); in prepare_for_vmx_operation() 160 feature_control = rdmsr(MSR_IA32_FEAT_CTL); in prepare_for_vmx_operation() 200 return rdmsr(MSR_IA32_VMX_EPT_VPID_CAP) & mask; in ept_vpid_cap_supported() 218 vmwrite(PIN_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PINBASED_CTLS)); in init_vmcs_control_fields() 236 rdmsr(MSR_IA32_VMX_TRUE_PROCBASED_CTLS) | CPU_BASED_ACTIVATE_SECONDARY_CONTROLS); in init_vmcs_control_fields() 238 vmwrite(CPU_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PROCBASED_CTLS)); in init_vmcs_control_fields() 246 vmwrite(VM_EXIT_CONTROLS, rdmsr(MSR_IA32_VMX_EXIT_CTLS) | in init_vmcs_control_fields() [all …]
|
D | svm.c | 75 efer = rdmsr(MSR_EFER); in generic_svm_setup() 90 save->efer = rdmsr(MSR_EFER); in generic_svm_setup() 97 save->g_pat = rdmsr(MSR_IA32_CR_PAT); in generic_svm_setup() 98 save->dbgctl = rdmsr(MSR_IA32_DEBUGCTLMSR); in generic_svm_setup()
|
/linux-6.1.9/drivers/cpufreq/ |
D | longrun.c | 39 rdmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_get_policy() 46 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_get_policy() 95 rdmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_set_policy() 107 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_set_policy() 180 rdmsr(MSR_TMTA_LRTI_READOUT, msr_lo, msr_hi); in longrun_determine_freqs() 182 rdmsr(MSR_TMTA_LRTI_VOLT_MHZ, msr_lo, msr_hi); in longrun_determine_freqs() 187 rdmsr(MSR_TMTA_LRTI_VOLT_MHZ, msr_lo, msr_hi); in longrun_determine_freqs() 204 rdmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_determine_freqs()
|
D | speedstep-lib.c | 75 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentium3_get_frequency() 112 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentiumM_get_frequency() 135 rdmsr(MSR_FSB_FREQ, msr_lo, msr_tmp); in pentium_core_get_frequency() 160 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_tmp); in pentium_core_get_frequency() 189 rdmsr(0x2c, msr_lo, msr_hi); in pentium4_get_frequency() 345 rdmsr(MSR_IA32_EBL_CR_POWERON, msr_lo, msr_hi); in speedstep_detect_processor() 358 rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi); in speedstep_detect_processor()
|
D | e_powersaver.c | 103 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get() 115 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 119 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 131 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 143 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 199 rdmsr(0x1153, lo, hi); in eps_cpu_init() 204 rdmsr(0x1154, lo, hi); in eps_cpu_init() 241 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_cpu_init()
|
/linux-6.1.9/arch/x86/kernel/cpu/mce/ |
D | p5.c | 29 rdmsr(MSR_IA32_P5_MC_ADDR, loaddr, hi); in pentium_machine_check() 30 rdmsr(MSR_IA32_P5_MC_TYPE, lotype, hi); in pentium_machine_check() 58 rdmsr(MSR_IA32_P5_MC_ADDR, l, h); in intel_p5_mcheck_init() 59 rdmsr(MSR_IA32_P5_MC_TYPE, l, h); in intel_p5_mcheck_init()
|
/linux-6.1.9/arch/x86/kernel/cpu/mtrr/ |
D | generic.c | 56 rdmsr(MSR_AMD64_SYSCFG, lo, hi); in k8_check_syscfg_dram_mod_en() 317 rdmsr(MTRRphysBase_MSR(index), vr->base_lo, vr->base_hi); in get_mtrr_var_range() 318 rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); in get_mtrr_var_range() 342 rdmsr(MSR_MTRRfix64K_00000, p[0], p[1]); in get_fixed_ranges() 345 rdmsr(MSR_MTRRfix16K_80000 + i, p[2 + i * 2], p[3 + i * 2]); in get_fixed_ranges() 347 rdmsr(MSR_MTRRfix4K_C0000 + i, p[6 + i * 2], p[7 + i * 2]); in get_fixed_ranges() 470 rdmsr(MSR_MTRRcap, lo, dummy); in get_mtrr_state() 478 rdmsr(MSR_MTRRdefType, lo, dummy); in get_mtrr_state() 486 rdmsr(MSR_K8_TOP_MEM2, low, high); in get_mtrr_state() 542 rdmsr(msr, lo, hi); in set_fixed_range() [all …]
|
D | amd.c | 15 rdmsr(MSR_K6_UWCCR, low, high); in amd_get_mtrr() 67 rdmsr(MSR_K6_UWCCR, regs[0], regs[1]); in amd_set_mtrr()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | ucna_injection_test.c | 74 uint64_t msr = rdmsr(MSR_IA32_APICBASE); in verify_apic_base_addr() 88 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code() 97 ucna_addr = rdmsr(MSR_IA32_MCx_ADDR(UCNA_BANK)); in ucna_injection_guest_code() 100 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code() 106 ucna_addr2 = rdmsr(MSR_IA32_MCx_ADDR(UCNA_BANK)); in ucna_injection_guest_code() 112 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_disabled_guest_code() 120 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_enabled_guest_code() 129 i_ucna_addr = rdmsr(MSR_IA32_MCx_ADDR(UCNA_BANK)); in guest_cmci_handler()
|
D | pmu_event_filter_test.c | 114 uint64_t v = rdmsr(msr) ^ bits_to_flip; in check_msr() 117 if (rdmsr(msr) != v) in check_msr() 122 if (rdmsr(msr) != v) in check_msr() 140 br0 = rdmsr(MSR_IA32_PMC0); in intel_guest_code() 142 br1 = rdmsr(MSR_IA32_PMC0); in intel_guest_code() 164 br0 = rdmsr(MSR_K7_PERFCTR0); in amd_guest_code() 166 br1 = rdmsr(MSR_K7_PERFCTR0); in amd_guest_code()
|
D | hyperv_svm_test.c | 51 rdmsr(MSR_FS_BASE); /* intercepted */ in l2_guest_code() 52 rdmsr(MSR_FS_BASE); /* intercepted */ in l2_guest_code() 53 rdmsr(MSR_GS_BASE); /* not intercepted */ in l2_guest_code() 55 rdmsr(MSR_GS_BASE); /* intercepted */ in l2_guest_code()
|
D | vmx_preemption_timer_test.c | 87 basic.val = rdmsr(MSR_IA32_VMX_BASIC); in l1_guest_code() 88 ctrl_pin_rev.val = rdmsr(basic.ctrl ? MSR_IA32_VMX_TRUE_PINBASED_CTLS in l1_guest_code() 90 ctrl_exit_rev.val = rdmsr(basic.ctrl ? MSR_IA32_VMX_TRUE_EXIT_CTLS in l1_guest_code() 111 vmx_pt_rate = rdmsr(MSR_IA32_VMX_MISC) & 0x1F; in l1_guest_code()
|
D | hyperv_clock.c | 56 tsc_freq = rdmsr(HV_X64_MSR_TSC_FREQUENCY); in check_tsc_msr_rdtsc() 61 t1 = rdmsr(HV_X64_MSR_TIME_REF_COUNT); in check_tsc_msr_rdtsc() 65 t2 = rdmsr(HV_X64_MSR_TIME_REF_COUNT); in check_tsc_msr_rdtsc() 90 r1 = rdmsr(HV_X64_MSR_TIME_REF_COUNT); in check_tsc_msr_tsc_page() 97 r2 = rdmsr(HV_X64_MSR_TIME_REF_COUNT); in check_tsc_msr_tsc_page()
|
D | amx_test.c | 256 GUEST_ASSERT(rdmsr(MSR_IA32_XFD) == 0); in guest_code() 273 GUEST_ASSERT(rdmsr(MSR_IA32_XFD) == XFEATURE_MASK_XTILEDATA); in guest_code() 287 GUEST_ASSERT(rdmsr(MSR_IA32_XFD_ERR) == XFEATURE_MASK_XTILEDATA); in guest_nm_handler() 289 GUEST_ASSERT(rdmsr(MSR_IA32_XFD_ERR) == XFEATURE_MASK_XTILEDATA); in guest_nm_handler()
|
D | userspace_msr_exit_test.c | 309 GUEST_ASSERT(rdmsr(MSR_SYSCALL_MASK) == MSR_SYSCALL_MASK); in guest_msr_calls() 310 GUEST_ASSERT(rdmsr(MSR_GS_BASE) == MSR_GS_BASE); in guest_msr_calls() 312 GUEST_ASSERT(rdmsr(MSR_SYSCALL_MASK) != MSR_SYSCALL_MASK); in guest_msr_calls() 313 GUEST_ASSERT(rdmsr(MSR_GS_BASE) != MSR_GS_BASE); in guest_msr_calls() 320 rdmsr(MSR_IA32_POWER_CTL); in guest_msr_calls() 323 GUEST_ASSERT(rdmsr(0xdeadbeef) == 0xdeadbeef); in guest_msr_calls()
|
/linux-6.1.9/arch/x86/kernel/ |
D | tsc_msr.c | 181 rdmsr(MSR_PLATFORM_INFO, lo, hi); in cpu_khz_from_msr() 184 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in cpu_khz_from_msr() 189 rdmsr(MSR_FSB_FREQ, lo, hi); in cpu_khz_from_msr()
|
/linux-6.1.9/arch/x86/kernel/cpu/ |
D | centaur.c | 32 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3() 40 rdmsr(MSR_VIA_RNG, lo, hi); in init_c3() 54 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3() 184 rdmsr(MSR_IDT_FCR1, lo, hi); in init_centaur()
|
D | zhaoxin.c | 30 rdmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap() 39 rdmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/ |
D | apic.h | 70 return rdmsr(MSR_IA32_APICBASE) & MSR_IA32_APICBASE_BSP; in get_bsp_flag() 85 return rdmsr(APIC_BASE_MSR + (reg >> 4)); in x2apic_read_reg()
|
/linux-6.1.9/tools/power/cpupower/debug/i386/ |
D | centrino-decode.c | 28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() function 80 err = rdmsr(cpu, MSR_IA32_PERF_STATUS, &lo, &hi); in decode_live()
|
/linux-6.1.9/drivers/ata/ |
D | pata_cs5536.c | 36 #undef rdmsr /* avoid accidental MSR usage on, e.g. x86-64 */ 38 #define rdmsr(x, y, z) do { } while (0) macro 91 rdmsr(MSR_IDE_CFG + reg, *val, dummy); in cs5536_read()
|
/linux-6.1.9/drivers/thermal/intel/ |
D | therm_throt.c | 670 rdmsr(MSR_IA32_MISC_ENABLE, l, h); in intel_init_thermal() 696 rdmsr(MSR_THERM2_CTL, l, h); in intel_init_thermal() 707 rdmsr(MSR_IA32_THERM_INTERRUPT, l, h); in intel_init_thermal() 721 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); in intel_init_thermal() 738 rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, l, h); in intel_init_thermal() 744 rdmsr(MSR_IA32_MISC_ENABLE, l, h); in intel_init_thermal()
|
/linux-6.1.9/drivers/char/hw_random/ |
D | via-rng.c | 153 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() 177 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init()
|
/linux-6.1.9/arch/x86/mm/ |
D | mem_encrypt_boot.S | 117 rdmsr 150 rdmsr
|