/Linux-v6.1/arch/x86/kvm/vmx/ |
D | nested.h | 32 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata); 99 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count() 109 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field() 115 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection() 120 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag() 126 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs() 257 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_guest_cr0_valid() 258 u64 fixed1 = to_vmx(vcpu)->nested.msrs.cr0_fixed1; in nested_guest_cr0_valid() 261 if (to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_guest_cr0_valid() 271 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_host_cr0_valid() [all …]
|
D | nested.c | 403 bool execonly = vmx->nested.msrs.ept_caps & VMX_EPT_EXECUTE_ONLY_BIT; in nested_ept_new_eptp() 404 int ept_lpage_level = ept_caps_to_lpage_level(vmx->nested.msrs.ept_caps); in nested_ept_new_eptp() 878 u64 vmx_misc = vmx_control_msr(vmx->nested.msrs.misc_low, in nested_vmx_max_atomic_switch_msrs() 879 vmx->nested.msrs.misc_high); in nested_vmx_max_atomic_switch_msrs() 1207 vmx->nested.msrs.basic = data; in vmx_restore_vmx_basic() 1211 static void vmx_get_control_msr(struct nested_vmx_msrs *msrs, u32 msr_index, in vmx_get_control_msr() argument 1216 *low = &msrs->pinbased_ctls_low; in vmx_get_control_msr() 1217 *high = &msrs->pinbased_ctls_high; in vmx_get_control_msr() 1220 *low = &msrs->procbased_ctls_low; in vmx_get_control_msr() 1221 *high = &msrs->procbased_ctls_high; in vmx_get_control_msr() [all …]
|
D | vmx.c | 1939 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr() 2142 ((vmx->nested.msrs.entry_ctls_high & VM_ENTRY_LOAD_BNDCFGS) || in vmx_set_msr() 2143 (vmx->nested.msrs.exit_ctls_high & VM_EXIT_CLEAR_BNDCFGS))) in vmx_set_msr() 4435 vmx->nested.msrs.secondary_ctls_high |= control; in vmx_adjust_secondary_exec_control() 4437 vmx->nested.msrs.secondary_ctls_high &= ~control; in vmx_adjust_secondary_exec_control() 4713 memcpy(&vmx->nested.msrs, &vmcs_config.nested, sizeof(vmx->nested.msrs)); in __vmx_vcpu_reset() 6977 struct perf_guest_switch_msr *msrs; in atomic_switch_perf_msrs() local 6985 msrs = perf_guest_get_msrs(&nr_msrs, (void *)pmu); in atomic_switch_perf_msrs() 6986 if (!msrs) in atomic_switch_perf_msrs() 6990 if (msrs[i].host == msrs[i].guest) in atomic_switch_perf_msrs() [all …]
|
D | vmx.h | 246 struct nested_vmx_msrs msrs; member
|
/Linux-v6.1/arch/x86/lib/ |
D | msr.c | 11 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()
|
D | msr-smp.c | 14 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-v6.1/Documentation/trace/postprocess/ |
D | decode_msr.py | 7 msrs = dict() variable 13 msrs[int(m.group(2), 16)] = m.group(1) 26 if num in msrs: 27 r = msrs[num]
|
/Linux-v6.1/arch/x86/include/asm/ |
D | msr.h | 18 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-v6.1/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 228 struct kvm_msrs msrs; member 556 struct kvm_msrs *msrs) in vcpu_msrs_get() argument 558 int r = __vcpu_ioctl(vcpu, KVM_GET_MSRS, msrs); in vcpu_msrs_get() 560 TEST_ASSERT(r == msrs->nmsrs, in vcpu_msrs_get() 562 r, r < 0 || r >= msrs->nmsrs ? -1 : msrs->entries[r].index); in vcpu_msrs_get() 564 static inline void vcpu_msrs_set(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs) in vcpu_msrs_set() argument 566 int r = __vcpu_ioctl(vcpu, KVM_SET_MSRS, msrs); in vcpu_msrs_set() 568 TEST_ASSERT(r == msrs->nmsrs, in vcpu_msrs_set() 570 r, r < 0 || r >= msrs->nmsrs ? -1 : msrs->entries[r].index); in vcpu_msrs_set()
|
/Linux-v6.1/drivers/platform/x86/intel/ifs/ |
D | runtest.c | 136 u64 *msrs = data; in doscan() local 150 wrmsrl(MSR_ACTIVATE_SCAN, msrs[0]); in doscan() 154 rdmsrl(MSR_SCAN_STATUS, msrs[1]); in doscan()
|
/Linux-v6.1/Documentation/virt/kvm/x86/ |
D | cpuid.rst | 44 KVM_FEATURE_CLOCKSOURCE 0 kvmclock available at msrs 52 KVM_FEATURE_CLOCKSOURCE2 3 kvmclock available at msrs
|
/Linux-v6.1/arch/x86/kernel/cpu/mce/ |
D | amd.c | 643 u32 msrs[NR_BLOCKS]; in disable_err_thresholding() local 646 msrs[0] = 0x00000413; /* MC4_MISC0 */ in disable_err_thresholding() 647 msrs[1] = 0xc0000408; /* MC4_MISC1 */ in disable_err_thresholding() 655 msrs[0] = MSR_AMD64_SMCA_MCx_MISC(bank); in disable_err_thresholding() 670 msr_clear_bit(msrs[i], 62); in disable_err_thresholding()
|
/Linux-v6.1/drivers/edac/ |
D | amd64_edac.c | 14 static struct msr __percpu *msrs; variable 3729 rdmsr_on_cpus(mask, MSR_IA32_MCG_CTL, msrs); in nb_mce_bank_enabled_on_node() 3732 struct msr *reg = per_cpu_ptr(msrs, cpu); in nb_mce_bank_enabled_on_node() 3761 rdmsr_on_cpus(cmask, MSR_IA32_MCG_CTL, msrs); in toggle_ecc_err_reporting() 3765 struct msr *reg = per_cpu_ptr(msrs, cpu); in toggle_ecc_err_reporting() 3780 wrmsr_on_cpus(cmask, MSR_IA32_MCG_CTL, msrs); in toggle_ecc_err_reporting() 4349 msrs = msrs_alloc(); in amd64_edac_init() 4350 if (!msrs) in amd64_edac_init() 4388 msrs_free(msrs); in amd64_edac_init() 4389 msrs = NULL; in amd64_edac_init() [all …]
|
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 981 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state() 1004 state->msrs.nmsrs = msr_list->nmsrs; in vcpu_save_state() 1006 state->msrs.entries[i].index = msr_list->indices[i]; in vcpu_save_state() 1007 vcpu_msrs_get(vcpu, &state->msrs); in vcpu_save_state() 1017 vcpu_msrs_set(vcpu, &state->msrs); in vcpu_load_state()
|
/Linux-v6.1/arch/x86/kvm/ |
D | x86.c | 354 struct kvm_user_return_msrs *msrs in kvm_on_user_return() local 364 if (msrs->registered) { in kvm_on_user_return() 365 msrs->registered = false; in kvm_on_user_return() 370 values = &msrs->values[slot]; in kvm_on_user_return() 420 struct kvm_user_return_msrs *msrs = per_cpu_ptr(user_return_msrs, cpu); in kvm_user_return_msr_cpu_online() local 426 msrs->values[i].host = value; in kvm_user_return_msr_cpu_online() 427 msrs->values[i].curr = value; in kvm_user_return_msr_cpu_online() 434 struct kvm_user_return_msrs *msrs = per_cpu_ptr(user_return_msrs, cpu); in kvm_set_user_return_msr() local 437 value = (value & mask) | (msrs->values[slot].host & ~mask); in kvm_set_user_return_msr() 438 if (value == msrs->values[slot].curr) in kvm_set_user_return_msr() [all …]
|
/Linux-v6.1/Documentation/virt/kvm/ |
D | api.rst | 208 __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 638 :Returns: number of msrs successfully returned; 654 __u32 nmsrs; /* number of msrs in entries */ 678 :Returns: number of msrs successfully set (see below), -1 on error 4089 __u32 nmsrs; /* number of msrs in bitmap */
|