/linux-6.12.1/arch/x86/include/asm/ |
D | msr.h | 70 static inline void do_trace_write_msr(unsigned int msr, u64 val, int failed) {} in do_trace_write_msr() 71 static inline void do_trace_read_msr(unsigned int msr, u64 val, int failed) {} in do_trace_read_msr() 72 static inline void do_trace_rdpmc(unsigned int msr, u64 val, int failed) {} in do_trace_rdpmc() 82 static __always_inline unsigned long long __rdmsr(unsigned int msr) in __rdmsr() 94 static __always_inline void __wrmsr(unsigned int msr, u32 low, u32 high) in __wrmsr() 102 #define native_rdmsr(msr, val1, val2) \ argument 109 #define native_wrmsr(msr, low, high) \ argument 112 #define native_wrmsrl(msr, val) \ argument 116 static inline unsigned long long native_read_msr(unsigned int msr) in native_read_msr() 128 static inline unsigned long long native_read_msr_safe(unsigned int msr, in native_read_msr_safe() [all …]
|
D | paravirt.h | 190 static inline u64 paravirt_read_msr(unsigned msr) in paravirt_read_msr() 195 static inline void paravirt_write_msr(unsigned msr, in paravirt_write_msr() 201 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) in paravirt_read_msr_safe() 206 static inline int paravirt_write_msr_safe(unsigned msr, in paravirt_write_msr_safe() 212 #define rdmsr(msr, val1, val2) \ argument 219 #define wrmsr(msr, val1, val2) \ argument 224 #define rdmsrl(msr, val) \ argument 229 static inline void wrmsrl(unsigned msr, u64 val) in wrmsrl() 234 #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) argument 237 #define rdmsr_safe(msr, a, b) \ argument [all …]
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | perfctr-watchdog.c | 45 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.12.1/arch/x86/lib/ |
D | msr.c | 39 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.12.1/arch/x86/kvm/ |
D | mtrr.c | 23 static u64 *find_mtrr(struct kvm_vcpu *vcpu, unsigned int msr) in find_mtrr() 60 static bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_valid() 95 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_mtrr_set_msr() 110 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_mtrr_get_msr()
|
D | hyperv.c | 245 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() 1375 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() 1518 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() [all …]
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | pmu.c | 38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 93 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 104 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr() 131 u32 msr = msr_info->index; in amd_pmu_get_msr() local 153 u32 msr = msr_info->index; in amd_pmu_set_msr() local
|
/linux-6.12.1/arch/x86/hyperv/ |
D | ivm.c | 186 static void hv_ghcb_msr_write(u64 msr, u64 value) in hv_ghcb_msr_write() 215 static void hv_ghcb_msr_read(u64 msr, u64 *value) in hv_ghcb_msr_read() 381 static inline void hv_ghcb_msr_write(u64 msr, u64 value) {} in hv_ghcb_msr_write() 382 static inline void hv_ghcb_msr_read(u64 msr, u64 *value) {} in hv_ghcb_msr_read() 386 static void hv_tdx_msr_write(u64 msr, u64 val) in hv_tdx_msr_write() 400 static void hv_tdx_msr_read(u64 msr, u64 *val) in hv_tdx_msr_read() 430 static inline void hv_tdx_msr_write(u64 msr, u64 value) {} in hv_tdx_msr_write() 431 static inline void hv_tdx_msr_read(u64 msr, u64 *value) {} in hv_tdx_msr_read() 435 void hv_ivm_msr_write(u64 msr, u64 value) in hv_ivm_msr_write() 446 void hv_ivm_msr_read(u64 msr, u64 *value) in hv_ivm_msr_read()
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | cpu_setup_power.c | 19 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
|
D | signal_64.c | 130 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
|
D | signal_32.c | 271 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.12.1/arch/x86/xen/ |
D | pmu.c | 131 static inline bool is_amd_pmu_msr(unsigned int msr) in is_amd_pmu_msr() 197 static bool xen_intel_pmu_emulate(unsigned int msr, u64 *val, int type, in xen_intel_pmu_emulate() 260 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate() 301 static bool pmu_msr_chk_emulated(unsigned int msr, uint64_t *val, bool is_read, in pmu_msr_chk_emulated() 316 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err) in pmu_msr_read() 331 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err) in pmu_msr_write() 357 uint32_t msr; in xen_amd_read_pmc() local 378 uint32_t msr; in xen_intel_read_pmc() local
|
/linux-6.12.1/arch/m68k/bvme6000/ |
D | config.c | 166 unsigned char msr; in bvme6000_timer_int() local 191 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init() local 233 unsigned char msr, msb; in bvme6000_read_clk() local 286 unsigned char msr = rtc->msr & 0xc0; in bvme6000_hwclk() local
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | kvm_pv_test.c | 20 #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
|
D | hyperv_features.c | 37 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
|
D | userspace_msr_exit_test.c | 80 static void deny_msr(uint8_t *bitmap, u32 msr) in deny_msr() 145 static noinline uint64_t test_rdmsr(uint32_t msr) in test_rdmsr() 161 static noinline void test_wrmsr(uint32_t msr, uint64_t value) in test_wrmsr() 179 static noinline uint64_t test_em_rdmsr(uint32_t msr) in test_em_rdmsr() 195 static noinline void test_em_wrmsr(uint32_t msr, uint64_t value) in test_em_wrmsr()
|
/linux-6.12.1/arch/arm64/hyperv/ |
D | hv_core.c | 60 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.12.1/arch/x86/include/asm/shared/ |
D | msr.h | 5 struct msr { struct 6 union {
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | asm-prototypes.h | 63 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.12.1/arch/powerpc/kvm/ |
D | book3s_hv_tm.c | 19 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure() local 45 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
|
D | book3s_pr.c | 69 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 466 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) in kvmppc_set_msr_pr() 799 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) in kvmppc_giveup_ext() 862 ulong msr) in kvmppc_handle_ext() 1060 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_setup_debug() local 1069 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_clear_debug() local
|
/linux-6.12.1/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 124 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 150 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr() 181 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc() 302 u32 msr = msr_info->index; in intel_pmu_get_msr() local 345 u32 msr = msr_info->index; in intel_pmu_set_msr() local
|
/linux-6.12.1/arch/powerpc/platforms/powernv/ |
D | opal-call.c | 71 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.12.1/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 680 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 1333 unsigned long long msr; in verify_hwp_is_enabled() local 1419 unsigned long long msr; in early_cpuid() local
|
/linux-6.12.1/tools/power/cpupower/debug/i386/ |
D | centrino-decode.c | 28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() 63 static void decode (unsigned int msr) in decode()
|