Home
last modified time | relevance | path

Searched defs:msr (Results 1 – 25 of 197) sorted by relevance

12345678

/linux-6.6.21/arch/x86/include/asm/
Dmsr.h68 static inline void do_trace_write_msr(unsigned int msr, u64 val, int failed) {} in do_trace_write_msr()
69 static inline void do_trace_read_msr(unsigned int msr, u64 val, int failed) {} in do_trace_read_msr()
70 static inline void do_trace_rdpmc(unsigned int msr, u64 val, int failed) {} in do_trace_rdpmc()
80 static __always_inline unsigned long long __rdmsr(unsigned int msr) in __rdmsr()
92 static __always_inline void __wrmsr(unsigned int msr, u32 low, u32 high) in __wrmsr()
100 #define native_rdmsr(msr, val1, val2) \ argument
107 #define native_wrmsr(msr, low, high) \ argument
110 #define native_wrmsrl(msr, val) \ argument
114 static inline unsigned long long native_read_msr(unsigned int msr) in native_read_msr()
126 static inline unsigned long long native_read_msr_safe(unsigned int msr, in native_read_msr_safe()
[all …]
Dparavirt.h188 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr()
193 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr()
199 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe()
204 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe()
210 #define rdmsr(msr, val1, val2) \ argument
217 #define wrmsr(msr, val1, val2) \ argument
222 #define rdmsrl(msr, val) \ argument
227 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl()
232 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument
235 #define rdmsr_safe(msr, a, b) \ argument
[all …]
/linux-6.6.21/arch/x86/kernel/cpu/
Dperfctr-watchdog.c45 static inline unsigned int nmi_perfctr_msr_to_bit(unsigned int msr) in nmi_perfctr_msr_to_bit()
78 static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr) in nmi_evntsel_msr_to_bit()
108 int reserve_perfctr_nmi(unsigned int msr) in reserve_perfctr_nmi()
123 void release_perfctr_nmi(unsigned int msr) in release_perfctr_nmi()
136 int reserve_evntsel_nmi(unsigned int msr) in reserve_evntsel_nmi()
151 void release_evntsel_nmi(unsigned int msr) in release_evntsel_nmi()
/linux-6.6.21/arch/x86/lib/
Dmsr.c39 static int msr_read(u32 msr, struct msr *m) in msr_read()
59 static int msr_write(u32 msr, struct msr *m) in msr_write()
64 static inline int __flip_bit(u32 msr, u8 bit, bool set) in __flip_bit()
102 int msr_set_bit(u32 msr, u8 bit) in msr_set_bit()
117 int msr_clear_bit(u32 msr, u8 bit) in msr_clear_bit()
123 void do_trace_write_msr(unsigned int msr, u64 val, int failed) in do_trace_write_msr()
130 void do_trace_read_msr(unsigned int msr, u64 val, int failed) in do_trace_read_msr()
/linux-6.6.21/arch/x86/kvm/
Dmtrr.c28 static bool is_mtrr_base_msr(unsigned int msr) in is_mtrr_base_msr()
35 unsigned int msr) in var_mtrr_msr_to_range()
42 static bool msr_mtrr_valid(unsigned msr) in msr_mtrr_valid()
68 static bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_valid()
194 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit()
250 static bool fixed_msr_to_range(u32 msr, u64 *start, u64 *end) in fixed_msr_to_range()
261 static int fixed_msr_to_range_index(u32 msr) in fixed_msr_to_range_index()
318 static void update_mtrr(struct kvm_vcpu *vcpu, u32 msr) in update_mtrr()
349 static void set_var_mtrr_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in set_var_mtrr_msr()
378 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr()
[all …]
Dhyperv.c245 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr) in synic_exit()
260 u32 msr, u64 data, bool host) in synic_set_msr()
346 static void syndbg_exit(struct kvm_vcpu *vcpu, u32 msr) in syndbg_exit()
363 static int syndbg_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in syndbg_set_msr()
402 static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in syndbg_get_msr()
437 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, in synic_get_msr()
1008 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide()
1249 static bool hv_check_msr_access(struct kvm_vcpu_hv *hv_vcpu, u32 msr) in hv_check_msr_access()
1325 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw()
1468 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr()
[all …]
/linux-6.6.21/arch/x86/kvm/svm/
Dpmu.c38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
97 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
108 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr()
135 u32 msr = msr_info->index; in amd_pmu_get_msr() local
157 u32 msr = msr_info->index; in amd_pmu_set_msr() local
/linux-6.6.21/arch/powerpc/kernel/
Dcpu_setup_power.c19 u64 msr; in init_hvmode_206() local
153 u64 msr; in __restore_cpu_power7() local
185 u64 msr; in __restore_cpu_power8() local
225 u64 msr; in __restore_cpu_power9() local
268 u64 msr; in __restore_cpu_power10() local
Dsignal_64.c130 unsigned long msr = regs->msr; in __unsafe_setup_sigcontext() local
210 unsigned long msr) in setup_tm_sigcontexts()
344 unsigned long msr; in __unsafe_restore_sigcontext() local
445 unsigned long msr; in restore_tm_sigcontexts() local
749 unsigned long msr; in SYSCALL_DEFINE0() local
865 unsigned long msr = regs->msr; in handle_rt_signal64() local
Dsignal_32.c271 unsigned long msr = regs->msr; in __unsafe_save_user_regs() local
370 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
451 struct mcontext __user *tm_frame, unsigned long msr) in save_tm_user_regs_unsafe()
457 #define unsafe_save_tm_user_regs(regs, frame, tm_frame, msr, label) do { \ argument
470 unsigned long msr; in restore_user_regs() local
576 unsigned long msr, msr_hi; in restore_tm_user_regs() local
746 unsigned long msr = regs->msr; in handle_rt_signal32() local
846 unsigned long msr = regs->msr; in handle_signal32() local
/linux-6.6.21/arch/x86/hyperv/
Divm.c185 static void hv_ghcb_msr_write(u64 msr, u64 value) in hv_ghcb_msr_write()
214 static void hv_ghcb_msr_read(u64 msr, u64 *value) in hv_ghcb_msr_read()
380 static inline void hv_ghcb_msr_write(u64 msr, u64 value) {} in hv_ghcb_msr_write()
381 static inline void hv_ghcb_msr_read(u64 msr, u64 *value) {} in hv_ghcb_msr_read()
385 static void hv_tdx_msr_write(u64 msr, u64 val) in hv_tdx_msr_write()
399 static void hv_tdx_msr_read(u64 msr, u64 *val) in hv_tdx_msr_read()
429 static inline void hv_tdx_msr_write(u64 msr, u64 value) {} in hv_tdx_msr_write()
430 static inline void hv_tdx_msr_read(u64 msr, u64 *value) {} in hv_tdx_msr_read()
434 void hv_ivm_msr_write(u64 msr, u64 value) in hv_ivm_msr_write()
445 void hv_ivm_msr_read(u64 msr, u64 *value) in hv_ivm_msr_read()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dkvm_pv_test.c20 #define TEST_MSR(msr) { .idx = msr, .name = #msr } argument
22 #define PR_MSR(msr) ucall(UCALL_PR_MSR, 1, msr) argument
41 static void test_msr(struct msr_data *msr) in test_msr()
100 struct msr_data *msr = (struct msr_data *)uc->args[0]; in pr_msr() local
Dhyperv_features.c37 static bool is_write_only_msr(uint32_t msr) in is_write_only_msr()
42 static void guest_msr(struct msr_data *msr) in guest_msr()
138 struct msr_data *msr; in guest_test_msrs_access() local
Duserspace_msr_exit_test.c86 static void deny_msr(uint8_t *bitmap, u32 msr) in deny_msr()
151 static noinline uint64_t test_rdmsr(uint32_t msr) in test_rdmsr()
167 static noinline void test_wrmsr(uint32_t msr, uint64_t value) in test_wrmsr()
185 static noinline uint64_t test_em_rdmsr(uint32_t msr) in test_em_rdmsr()
201 static noinline void test_em_wrmsr(uint32_t msr, uint64_t value) in test_em_wrmsr()
/linux-6.6.21/arch/x86/xen/
Dpmu.c132 static inline bool is_amd_pmu_msr(unsigned int msr) in is_amd_pmu_msr()
198 static bool xen_intel_pmu_emulate(unsigned int msr, u64 *val, int type, in xen_intel_pmu_emulate()
261 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate()
302 static bool pmu_msr_chk_emulated(unsigned int msr, uint64_t *val, bool is_read, in pmu_msr_chk_emulated()
317 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err) in pmu_msr_read()
332 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err) in pmu_msr_write()
358 uint32_t msr; in xen_amd_read_pmc() local
379 uint32_t msr; in xen_intel_read_pmc() local
/linux-6.6.21/arch/m68k/bvme6000/
Dconfig.c169 unsigned char msr; in bvme6000_timer_int() local
194 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local
236 unsigned char msr, msb; in bvme6000_read_clk() local
289 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
/linux-6.6.21/arch/arm64/hyperv/
Dhv_core.c60 void hv_set_vpreg(u32 msr, u64 value) in hv_set_vpreg()
91 void hv_get_vpreg_128(u32 msr, struct hv_get_vp_registers_output *result) in hv_get_vpreg_128()
121 u64 hv_get_vpreg(u32 msr) in hv_get_vpreg()
/linux-6.6.21/arch/x86/include/asm/shared/
Dmsr.h5 struct msr { struct
6 union {
/linux-6.6.21/arch/powerpc/include/asm/
Dasm-prototypes.h63 static inline void kvmppc_save_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_save_tm_hv()
65 static inline void kvmppc_restore_tm_hv(struct kvm_vcpu *vcpu, u64 msr, in kvmppc_restore_tm_hv()
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_hv_tm.c19 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure() local
45 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
Dbook3s_pr.c69 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_is_split_real() local
75 ulong msr = kvmppc_get_msr(vcpu); in kvmppc_fixup_split_real() local
109 unsigned long msr, pc, new_msr, new_pc; in kvmppc_inject_interrupt_pr() local
472 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) in kvmppc_set_msr_pr()
804 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) in kvmppc_giveup_ext()
867 ulong msr) in kvmppc_handle_ext()
1065 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_setup_debug() local
1074 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_clear_debug() local
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-call.c71 unsigned long opcode, unsigned long msr) in __opal_call_trace()
88 unsigned long opcode, unsigned long msr) in __opal_call_trace()
100 unsigned long msr = mfmsr(); in opal_call() local
/linux-6.6.21/tools/power/cpupower/debug/i386/
Dcentrino-decode.c28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr()
63 static void decode (unsigned int msr) in decode()
/linux-6.6.21/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c680 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr()
779 unsigned long long msr; in read_hwp_cap() local
814 unsigned long long msr; in read_hwp_request() local
828 unsigned long long msr = 0; in write_hwp_request() local
917 unsigned long long msr; in print_pkg_msrs() local
1169 unsigned long long msr; in enable_hwp_on_cpu() local
1182 unsigned long long msr; in update_cpu_msrs() local
1332 unsigned long long msr; in verify_hwp_is_enabled() local
1418 unsigned long long msr; in early_cpuid() local
/linux-6.6.21/tools/power/x86/turbostat/
Dturbostat.c690 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr()
1978 unsigned long long msr; in get_epb() local
2078 unsigned long long msr; in get_counters() local
2426 unsigned long long msr; in dump_nhm_platform_info() local
2452 unsigned long long msr; in dump_hsw_turbo_ratio_limits() local
2471 unsigned long long msr; in dump_ivt_turbo_ratio_limits() local
2536 unsigned long long msr, core_counts; in dump_turbo_ratio_limits() local
2565 unsigned long long msr; in dump_atom_turbo_ratio_limits() local
2607 unsigned long long msr; in dump_knl_turbo_ratio_limits() local
2662 unsigned long long msr; in dump_nhm_cst_cfg() local
[all …]

12345678