Home
last modified time | relevance | path

Searched refs:msr_info (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/arch/x86/lib/
Dmsr-smp.c10 struct msr_info *rv = info; in __rdmsr_on_cpu()
24 struct msr_info *rv = info; in __wrmsr_on_cpu()
39 struct msr_info rv; in rdmsr_on_cpu()
55 struct msr_info rv; in rdmsrl_on_cpu()
70 struct msr_info rv; in wrmsr_on_cpu()
86 struct msr_info rv; in wrmsrl_on_cpu()
103 struct msr_info rv; in __rwmsr_on_cpus()
148 struct msr_info msr;
164 struct msr_info *rv = info; in __wrmsr_safe_on_cpu()
196 struct msr_info rv; in wrmsr_safe_on_cpu()
[all …]
/linux-6.6.21/arch/x86/kvm/vmx/
Dpmu_intel.c312 struct msr_data *msr_info, bool read) in intel_pmu_handle_lbr_msrs_access() argument
315 u32 index = msr_info->index; in intel_pmu_handle_lbr_msrs_access()
332 rdmsrl(index, msr_info->data); in intel_pmu_handle_lbr_msrs_access()
334 wrmsrl(index, msr_info->data); in intel_pmu_handle_lbr_msrs_access()
344 msr_info->data = 0; in intel_pmu_handle_lbr_msrs_access()
348 static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in intel_pmu_get_msr() argument
352 u32 msr = msr_info->index; in intel_pmu_get_msr()
356 msr_info->data = pmu->fixed_ctr_ctrl; in intel_pmu_get_msr()
359 msr_info->data = pmu->pebs_enable; in intel_pmu_get_msr()
362 msr_info->data = pmu->ds_area; in intel_pmu_get_msr()
[all …]
Dvmx.c1990 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr() argument
1996 switch (msr_info->index) { in vmx_get_msr()
1999 msr_info->data = vmcs_readl(GUEST_FS_BASE); in vmx_get_msr()
2002 msr_info->data = vmcs_readl(GUEST_GS_BASE); in vmx_get_msr()
2005 msr_info->data = vmx_read_guest_kernel_gs_base(vmx); in vmx_get_msr()
2009 return kvm_get_msr_common(vcpu, msr_info); in vmx_get_msr()
2011 if (!msr_info->host_initiated && in vmx_get_msr()
2016 if (!msr_info->host_initiated && !vmx_has_waitpkg(vmx)) in vmx_get_msr()
2019 msr_info->data = vmx->msr_ia32_umwait_control; in vmx_get_msr()
2022 if (!msr_info->host_initiated && in vmx_get_msr()
[all …]
/linux-6.6.21/arch/x86/kvm/svm/
Dpmu.c131 static int amd_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in amd_pmu_get_msr() argument
135 u32 msr = msr_info->index; in amd_pmu_get_msr()
140 msr_info->data = pmc_read_counter(pmc); in amd_pmu_get_msr()
146 msr_info->data = pmc->eventsel; in amd_pmu_get_msr()
153 static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in amd_pmu_set_msr() argument
157 u32 msr = msr_info->index; in amd_pmu_set_msr()
158 u64 data = msr_info->data; in amd_pmu_set_msr()
Dsvm.c2811 struct msr_data msr_info; in efer_trap() local
2820 msr_info.host_initiated = false; in efer_trap()
2821 msr_info.index = MSR_EFER; in efer_trap()
2822 msr_info.data = to_svm(vcpu)->vmcb->control.exit_info_1 & ~EFER_SVME; in efer_trap()
2823 ret = kvm_set_msr_common(vcpu, &msr_info); in efer_trap()
2844 static int svm_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in svm_get_msr() argument
2848 switch (msr_info->index) { in svm_get_msr()
2850 if (!msr_info->host_initiated && in svm_get_msr()
2853 msr_info->data = svm->tsc_ratio_msr; in svm_get_msr()
2856 msr_info->data = svm->vmcb01.ptr->save.star; in svm_get_msr()
[all …]
/linux-6.6.21/arch/x86/kvm/
Dpmu.c576 int kvm_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_pmu_get_msr() argument
579 u32 msr = msr_info->index; in kvm_pmu_get_msr()
584 msr_info->data = pmu->global_status; in kvm_pmu_get_msr()
588 msr_info->data = pmu->global_ctrl; in kvm_pmu_get_msr()
592 msr_info->data = 0; in kvm_pmu_get_msr()
595 return static_call(kvm_x86_pmu_get_msr)(vcpu, msr_info); in kvm_pmu_get_msr()
601 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_pmu_set_msr() argument
604 u32 msr = msr_info->index; in kvm_pmu_set_msr()
605 u64 data = msr_info->data; in kvm_pmu_set_msr()
614 if (!msr_info->host_initiated) in kvm_pmu_set_msr()
[all …]
Dpmu.h29 int (*get_msr)(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
30 int (*set_msr)(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
243 int kvm_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
244 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
Dx86.c485 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_set_apic_base() argument
488 enum lapic_mode new_mode = kvm_apic_mode(msr_info->data); in kvm_set_apic_base()
492 if ((msr_info->data & reserved_bits) != 0 || new_mode == LAPIC_MODE_INVALID) in kvm_set_apic_base()
494 if (!msr_info->host_initiated) { in kvm_set_apic_base()
501 kvm_lapic_set_base(vcpu, msr_info->data); in kvm_set_apic_base()
1752 static int set_efer(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in set_efer() argument
1755 u64 efer = msr_info->data; in set_efer()
1761 if (!msr_info->host_initiated) { in set_efer()
3323 static int set_msr_mce(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in set_msr_mce() argument
3327 u32 msr = msr_info->index; in set_msr_mce()
[all …]
Dlapic.h123 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
/linux-6.6.21/arch/x86/include/asm/
Dmsr.h15 struct msr_info { struct
29 struct msr_info info; argument