Home
last modified time | relevance | path

Searched refs:msr_index (Results 1 – 9 of 9) sorted by relevance

/arch/x86/xen/
Dpmu.c143 static int is_intel_pmu_msr(u32 msr_index, int *type, int *index) in is_intel_pmu_msr() argument
147 switch (msr_index) { in is_intel_pmu_msr()
162 if ((msr_index >= MSR_CORE_PERF_FIXED_CTR0) && in is_intel_pmu_msr()
163 (msr_index < MSR_CORE_PERF_FIXED_CTR0 + in is_intel_pmu_msr()
165 *index = msr_index - MSR_CORE_PERF_FIXED_CTR0; in is_intel_pmu_msr()
170 if ((msr_index >= MSR_P6_EVNTSEL0) && in is_intel_pmu_msr()
171 (msr_index < MSR_P6_EVNTSEL0 + intel_num_arch_counters)) { in is_intel_pmu_msr()
172 *index = msr_index - MSR_P6_EVNTSEL0; in is_intel_pmu_msr()
177 msr_index_pmc = msr_index & MSR_PMC_ALIAS_MASK; in is_intel_pmu_msr()
/arch/x86/kvm/vmx/
Dnested.c962 u32 msr_index, in nested_vmx_get_vmexit_msr_value() argument
972 if (msr_index == MSR_IA32_TSC) { in nested_vmx_get_vmexit_msr_value()
984 if (kvm_get_msr(vcpu, msr_index, data)) { in nested_vmx_get_vmexit_msr_value()
986 msr_index); in nested_vmx_get_vmexit_msr_value()
1042 static bool nested_msr_store_list_has_msr(struct kvm_vcpu *vcpu, u32 msr_index) in nested_msr_store_list_has_msr() argument
1054 if (e.index == msr_index) in nested_msr_store_list_has_msr()
1061 u32 msr_index) in prepare_vmx_msr_autostore_list() argument
1070 msr_autostore_slot = vmx_find_loadstore_msr_slot(autostore, msr_index); in prepare_vmx_msr_autostore_list()
1072 in_vmcs12_store_list = nested_msr_store_list_has_msr(vcpu, msr_index); in prepare_vmx_msr_autostore_list()
1085 msr_index); in prepare_vmx_msr_autostore_list()
[all …]
Dnested.h31 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);
32 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata);
Devmcs.h206 void nested_evmcs_filter_control_msr(u32 msr_index, u64 *pdata);
Devmcs.c344 void nested_evmcs_filter_control_msr(u32 msr_index, u64 *pdata) in nested_evmcs_filter_control_msr() argument
353 switch (msr_index) { in nested_evmcs_filter_control_msr()
Dvmx.c2031 u32 msr_index = msr_info->index; in vmx_set_msr() local
2035 switch (msr_index) { in vmx_set_msr()
2232 [msr_index - MSR_IA32_SGXLEPUBKEYHASH0] = data; in vmx_set_msr()
2239 return vmx_set_vmx_msr(vcpu, msr_index, data); in vmx_set_msr()
2315 msr = vmx_find_uret_msr(vmx, msr_index); in vmx_set_msr()
2323 if (msr_index == MSR_IA32_ARCH_CAPABILITIES) in vmx_set_msr()
/arch/x86/kvm/
Dkvm_emulate.h213 int (*set_msr)(struct x86_emulate_ctxt *ctxt, u32 msr_index, u64 data);
214 int (*get_msr)(struct x86_emulate_ctxt *ctxt, u32 msr_index, u64 *pdata);
Demulate.c3674 u64 msr_index = reg_read(ctxt, VCPU_REGS_RCX); in em_wrmsr() local
3680 r = ctxt->ops->set_msr(ctxt, msr_index, msr_data); in em_wrmsr()
3693 u64 msr_index = reg_read(ctxt, VCPU_REGS_RCX); in em_rdmsr() local
3697 r = ctxt->ops->get_msr(ctxt, msr_index, &msr_data); in em_rdmsr()
Dx86.c7449 u32 msr_index, u64 *pdata) in emulator_get_msr() argument
7454 r = kvm_get_msr(vcpu, msr_index, pdata); in emulator_get_msr()
7456 if (r && kvm_get_msr_user_space(vcpu, msr_index, r)) { in emulator_get_msr()
7465 u32 msr_index, u64 data) in emulator_set_msr() argument
7470 r = kvm_set_msr(vcpu, msr_index, data); in emulator_set_msr()
7472 if (r && kvm_set_msr_user_space(vcpu, msr_index, data, r)) { in emulator_set_msr()