Home
last modified time | relevance | path

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

/Linux-v4.19/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()
197 struct msr_info rv; in wrmsr_safe_on_cpu()
[all …]
/Linux-v4.19/arch/x86/kvm/
Dpmu_intel.c199 static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in intel_pmu_set_msr() argument
203 u32 msr = msr_info->index; in intel_pmu_set_msr()
204 u64 data = msr_info->data; in intel_pmu_set_msr()
216 if (msr_info->host_initiated) { in intel_pmu_set_msr()
231 if (!msr_info->host_initiated) in intel_pmu_set_msr()
240 if (!msr_info->host_initiated) in intel_pmu_set_msr()
Dpmu_amd.c234 static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in amd_pmu_set_msr() argument
238 u32 msr = msr_info->index; in amd_pmu_set_msr()
239 u64 data = msr_info->data; in amd_pmu_set_msr()
Dx86.c329 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_set_apic_base() argument
332 enum lapic_mode new_mode = kvm_apic_mode(msr_info->data); in kvm_set_apic_base()
336 if ((msr_info->data & reserved_bits) != 0 || new_mode == LAPIC_MODE_INVALID) in kvm_set_apic_base()
338 if (!msr_info->host_initiated) { in kvm_set_apic_base()
345 kvm_lapic_set_base(vcpu, msr_info->data); in kvm_set_apic_base()
2182 static int set_msr_mce(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in set_msr_mce() argument
2186 u32 msr = msr_info->index; in set_msr_mce()
2187 u64 data = msr_info->data; in set_msr_mce()
2195 (data || !msr_info->host_initiated)) in set_msr_mce()
2213 if (!msr_info->host_initiated && in set_msr_mce()
[all …]
Dpmu.h32 int (*set_msr)(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
115 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
Dsvm.c4061 static int svm_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in svm_get_msr() argument
4065 switch (msr_info->index) { in svm_get_msr()
4067 msr_info->data = svm->vmcb->save.star; in svm_get_msr()
4071 msr_info->data = svm->vmcb->save.lstar; in svm_get_msr()
4074 msr_info->data = svm->vmcb->save.cstar; in svm_get_msr()
4077 msr_info->data = svm->vmcb->save.kernel_gs_base; in svm_get_msr()
4080 msr_info->data = svm->vmcb->save.sfmask; in svm_get_msr()
4084 msr_info->data = svm->vmcb->save.sysenter_cs; in svm_get_msr()
4087 msr_info->data = svm->sysenter_eip; in svm_get_msr()
4090 msr_info->data = svm->sysenter_esp; in svm_get_msr()
[all …]
Dvmx.c4065 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr() argument
4070 switch (msr_info->index) { in vmx_get_msr()
4073 msr_info->data = vmcs_readl(GUEST_FS_BASE); in vmx_get_msr()
4076 msr_info->data = vmcs_readl(GUEST_GS_BASE); in vmx_get_msr()
4079 msr_info->data = vmx_read_guest_kernel_gs_base(vmx); in vmx_get_msr()
4083 return kvm_get_msr_common(vcpu, msr_info); in vmx_get_msr()
4085 if (!msr_info->host_initiated && in vmx_get_msr()
4089 msr_info->data = to_vmx(vcpu)->spec_ctrl; in vmx_get_msr()
4092 if (!msr_info->host_initiated && in vmx_get_msr()
4095 msr_info->data = to_vmx(vcpu)->arch_capabilities; in vmx_get_msr()
[all …]
Dpmu.c318 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_pmu_set_msr() argument
320 return kvm_x86_ops->pmu_ops->set_msr(vcpu, msr_info); in kvm_pmu_set_msr()
Dlapic.h96 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info);
/Linux-v4.19/arch/x86/include/asm/
Dmsr.h24 struct msr_info { struct
38 struct msr_info info; argument