Home
last modified time | relevance | path

Searched refs:msrs (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/arch/x86/kvm/vmx/
Dnested.h32 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata);
100 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count()
110 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field()
116 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection()
121 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag()
127 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs()
258 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_guest_cr0_valid()
259 u64 fixed1 = to_vmx(vcpu)->nested.msrs.cr0_fixed1; in nested_guest_cr0_valid()
262 if (to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_guest_cr0_valid()
272 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_host_cr0_valid()
[all …]
Dnested.c414 bool execonly = vmx->nested.msrs.ept_caps & VMX_EPT_EXECUTE_ONLY_BIT; in nested_ept_new_eptp()
415 int ept_lpage_level = ept_caps_to_lpage_level(vmx->nested.msrs.ept_caps); in nested_ept_new_eptp()
892 u64 vmx_misc = vmx_control_msr(vmx->nested.msrs.misc_low, in nested_vmx_max_atomic_switch_msrs()
893 vmx->nested.msrs.misc_high); in nested_vmx_max_atomic_switch_msrs()
1230 vmx->nested.msrs.basic = data; in vmx_restore_vmx_basic()
1234 static void vmx_get_control_msr(struct nested_vmx_msrs *msrs, u32 msr_index, in vmx_get_control_msr() argument
1239 *low = &msrs->pinbased_ctls_low; in vmx_get_control_msr()
1240 *high = &msrs->pinbased_ctls_high; in vmx_get_control_msr()
1243 *low = &msrs->procbased_ctls_low; in vmx_get_control_msr()
1244 *high = &msrs->procbased_ctls_high; in vmx_get_control_msr()
[all …]
Dvmx.c2064 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr()
2265 ((vmx->nested.msrs.entry_ctls_high & VM_ENTRY_LOAD_BNDCFGS) || in vmx_set_msr()
2266 (vmx->nested.msrs.exit_ctls_high & VM_EXIT_CLEAR_BNDCFGS))) in vmx_set_msr()
4561 vmx->nested.msrs.secondary_ctls_high |= control; in vmx_adjust_secondary_exec_control()
4563 vmx->nested.msrs.secondary_ctls_high &= ~control; in vmx_adjust_secondary_exec_control()
4838 memcpy(&vmx->nested.msrs, &vmcs_config.nested, sizeof(vmx->nested.msrs)); in __vmx_vcpu_reset()
7140 struct perf_guest_switch_msr *msrs; in atomic_switch_perf_msrs() local
7148 msrs = perf_guest_get_msrs(&nr_msrs, (void *)pmu); in atomic_switch_perf_msrs()
7149 if (!msrs) in atomic_switch_perf_msrs()
7153 if (msrs[i].host == msrs[i].guest) in atomic_switch_perf_msrs()
[all …]
Dvmx.h234 struct nested_vmx_msrs msrs; member
/linux-6.6.21/arch/x86/lib/
Dmsr.c11 struct msr *msrs = NULL; in msrs_alloc() local
13 msrs = alloc_percpu(struct msr); in msrs_alloc()
14 if (!msrs) { in msrs_alloc()
19 return msrs; in msrs_alloc()
23 void msrs_free(struct msr *msrs) in msrs_free() argument
25 free_percpu(msrs); in msrs_free()
Dmsr-smp.c14 if (rv->msrs) in __rdmsr_on_cpu()
15 reg = per_cpu_ptr(rv->msrs, this_cpu); in __rdmsr_on_cpu()
28 if (rv->msrs) in __wrmsr_on_cpu()
29 reg = per_cpu_ptr(rv->msrs, this_cpu); in __wrmsr_on_cpu()
100 struct msr *msrs, in __rwmsr_on_cpus() argument
108 rv.msrs = msrs; in __rwmsr_on_cpus()
127 void rdmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs) in rdmsr_on_cpus() argument
129 __rwmsr_on_cpus(mask, msr_no, msrs, __rdmsr_on_cpu); in rdmsr_on_cpus()
141 void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs) in wrmsr_on_cpus() argument
143 __rwmsr_on_cpus(mask, msr_no, msrs, __wrmsr_on_cpu); in wrmsr_on_cpus()
/linux-6.6.21/Documentation/trace/postprocess/
Ddecode_msr.py7 msrs = dict() variable
13 msrs[int(m.group(2), 16)] = m.group(1)
26 if num in msrs:
27 r = msrs[num]
/linux-6.6.21/arch/x86/include/asm/
Dmsr.h18 struct msr *msrs; member
309 void msrs_free(struct msr *msrs);
318 void rdmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
319 void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
348 struct msr *msrs) in rdmsr_on_cpus() argument
350 rdmsr_on_cpu(0, msr_no, &(msrs[0].l), &(msrs[0].h)); in rdmsr_on_cpus()
353 struct msr *msrs) in wrmsr_on_cpus() argument
355 wrmsr_on_cpu(0, msr_no, msrs[0].l, msrs[0].h); in wrmsr_on_cpus()
/linux-6.6.21/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h389 struct kvm_msrs msrs; member
809 struct kvm_msrs *msrs) in vcpu_msrs_get() argument
811 int r = __vcpu_ioctl(vcpu, KVM_GET_MSRS, msrs); in vcpu_msrs_get()
813 TEST_ASSERT(r == msrs->nmsrs, in vcpu_msrs_get()
815 r, r < 0 || r >= msrs->nmsrs ? -1 : msrs->entries[r].index); in vcpu_msrs_get()
817 static inline void vcpu_msrs_set(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs) in vcpu_msrs_set() argument
819 int r = __vcpu_ioctl(vcpu, KVM_SET_MSRS, msrs); in vcpu_msrs_set()
821 TEST_ASSERT(r == msrs->nmsrs, in vcpu_msrs_set()
823 r, r < 0 || r >= msrs->nmsrs ? -1 : msrs->entries[r].index); in vcpu_msrs_set()
/linux-6.6.21/drivers/platform/x86/intel/ifs/
Druntest.c138 u64 *msrs = data; in doscan() local
152 wrmsrl(MSR_ACTIVATE_SCAN, msrs[0]); in doscan()
156 rdmsrl(MSR_SCAN_STATUS, msrs[1]); in doscan()
/linux-6.6.21/Documentation/virt/kvm/x86/
Dcpuid.rst44 KVM_FEATURE_CLOCKSOURCE 0 kvmclock available at msrs
52 KVM_FEATURE_CLOCKSOURCE2 3 kvmclock available at msrs
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Damd.c645 u32 msrs[NR_BLOCKS]; in disable_err_thresholding() local
648 msrs[0] = 0x00000413; /* MC4_MISC0 */ in disable_err_thresholding()
649 msrs[1] = 0xc0000408; /* MC4_MISC1 */ in disable_err_thresholding()
657 msrs[0] = MSR_AMD64_SMCA_MCx_MISC(bank); in disable_err_thresholding()
672 msr_clear_bit(msrs[i], 62); in disable_err_thresholding()
/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c975 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state()
999 state->msrs.nmsrs = msr_list->nmsrs; in vcpu_save_state()
1001 state->msrs.entries[i].index = msr_list->indices[i]; in vcpu_save_state()
1002 vcpu_msrs_get(vcpu, &state->msrs); in vcpu_save_state()
1012 vcpu_msrs_set(vcpu, &state->msrs); in vcpu_load_state()
/linux-6.6.21/drivers/edac/
Damd64_edac.c14 static struct msr __percpu *msrs; variable
3459 rdmsr_on_cpus(mask, MSR_IA32_MCG_CTL, msrs); in nb_mce_bank_enabled_on_node()
3462 struct msr *reg = per_cpu_ptr(msrs, cpu); in nb_mce_bank_enabled_on_node()
3491 rdmsr_on_cpus(cmask, MSR_IA32_MCG_CTL, msrs); in toggle_ecc_err_reporting()
3495 struct msr *reg = per_cpu_ptr(msrs, cpu); in toggle_ecc_err_reporting()
3510 wrmsr_on_cpus(cmask, MSR_IA32_MCG_CTL, msrs); in toggle_ecc_err_reporting()
4392 msrs = msrs_alloc(); in amd64_edac_init()
4393 if (!msrs) in amd64_edac_init()
4429 msrs_free(msrs); in amd64_edac_init()
4430 msrs = NULL; in amd64_edac_init()
[all …]
/linux-6.6.21/arch/x86/kvm/
Dx86.c365 struct kvm_user_return_msrs *msrs in kvm_on_user_return() local
375 if (msrs->registered) { in kvm_on_user_return()
376 msrs->registered = false; in kvm_on_user_return()
381 values = &msrs->values[slot]; in kvm_on_user_return()
431 struct kvm_user_return_msrs *msrs = per_cpu_ptr(user_return_msrs, cpu); in kvm_user_return_msr_cpu_online() local
437 msrs->values[i].host = value; in kvm_user_return_msr_cpu_online()
438 msrs->values[i].curr = value; in kvm_user_return_msr_cpu_online()
445 struct kvm_user_return_msrs *msrs = per_cpu_ptr(user_return_msrs, cpu); in kvm_set_user_return_msr() local
448 value = (value & mask) | (msrs->values[slot].host & ~mask); in kvm_set_user_return_msr()
449 if (value == msrs->values[slot].curr) in kvm_set_user_return_msr()
[all …]
/linux-6.6.21/Documentation/virt/kvm/
Dapi.rst208 __u32 nmsrs; /* number of msrs in entries */
213 kvm adjusts nmsrs to reflect the actual number of msrs and fills in the
216 KVM_GET_MSR_INDEX_LIST returns the guest msrs that are supported. The list
615 :Returns: number of msrs successfully returned;
631 __u32 nmsrs; /* number of msrs in entries */
655 :Returns: number of msrs successfully set (see below), -1 on error
4096 __u32 nmsrs; /* number of msrs in bitmap */