/linux-6.12.1/arch/x86/realmode/ |
D | init.c | 100 u64 efer; in setup_real_mode() local 148 rdmsrl(MSR_EFER, efer); in setup_real_mode() 149 trampoline_header->efer = efer & ~EFER_LMA; in setup_real_mode()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | svm.c | 73 uint64_t efer; in generic_svm_setup() local 75 efer = rdmsr(MSR_EFER); in generic_svm_setup() 76 wrmsr(MSR_EFER, efer | EFER_SVME); in generic_svm_setup() 90 save->efer = rdmsr(MSR_EFER); in generic_svm_setup()
|
/linux-6.12.1/include/xen/interface/hvm/ |
D | hvm_vcpu.h | 35 uint64_t efer; member 89 uint64_t efer; member
|
/linux-6.12.1/arch/x86/kvm/ |
D | smm.c | 82 CHECK_SMRAM64_OFFSET(efer, 0xFED0); in check_smram_offsets() 249 smram->efer = vcpu->arch.efer; in enter_smm_save_state_64() 531 if (kvm_set_msr(vcpu, MSR_EFER, smstate->efer & ~EFER_LMA)) in rsm_load_state_64() 613 unsigned long cr4, efer; in emulator_leave_smm() local 621 efer = 0; in emulator_leave_smm() 622 kvm_set_msr(vcpu, MSR_EFER, efer); in emulator_leave_smm()
|
D | emulate.c | 783 u64 efer; in emulator_recalc_and_set_mode() local 788 ctxt->ops->get_msr(ctxt, MSR_EFER, &efer); in emulator_recalc_and_set_mode() 792 if (efer & EFER_LMA) in emulator_recalc_and_set_mode() 800 if (efer & EFER_LMA) in emulator_recalc_and_set_mode() 809 if (efer & EFER_LMA) { in emulator_recalc_and_set_mode() 1512 u64 efer = 0; in get_descriptor_ptr() local 1514 ctxt->ops->get_msr(ctxt, MSR_EFER, &efer); in get_descriptor_ptr() 1515 if (!(efer & EFER_LMA)) in get_descriptor_ptr() 1686 u64 efer = 0; in __load_segment_descriptor() local 1688 ctxt->ops->get_msr(ctxt, MSR_EFER, &efer); in __load_segment_descriptor() [all …]
|
D | smm.h | 104 u64 efer; member
|
D | x86.h | 44 u64 efer; member 169 return !!(vcpu->arch.efer & EFER_LMA); in is_long_mode()
|
D | mmu.h | 86 unsigned long cr4, u64 efer, gpa_t nested_cr3);
|
D | x86.c | 1169 if ((vcpu->arch.efer & EFER_LME) && !is_paging(vcpu) && in kvm_set_cr0() 1180 if (!(vcpu->arch.efer & EFER_LME) && (cr0 & X86_CR0_PG) && in kvm_set_cr0() 1724 static bool __kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer) in __kvm_valid_efer() argument 1726 if (efer & EFER_AUTOIBRS && !guest_cpuid_has(vcpu, X86_FEATURE_AUTOIBRS)) in __kvm_valid_efer() 1729 if (efer & EFER_FFXSR && !guest_cpuid_has(vcpu, X86_FEATURE_FXSR_OPT)) in __kvm_valid_efer() 1732 if (efer & EFER_SVME && !guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in __kvm_valid_efer() 1735 if (efer & (EFER_LME | EFER_LMA) && in __kvm_valid_efer() 1739 if (efer & EFER_NX && !guest_cpuid_has(vcpu, X86_FEATURE_NX)) in __kvm_valid_efer() 1745 bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer) in kvm_valid_efer() argument 1747 if (efer & efer_reserved_bits) in kvm_valid_efer() [all …]
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | nested.c | 98 svm->vmcb01.ptr->save.efer, in nested_svm_init_mmu_context() 291 if (CC(!(save->efer & EFER_SVME))) in __nested_vmcb_check_save() 306 if ((save->efer & EFER_LME) && (save->cr0 & X86_CR0_PG)) { in __nested_vmcb_check_save() 317 if (CC(!kvm_valid_efer(vcpu, save->efer))) in __nested_vmcb_check_save() 399 to->efer = from->efer; in __nested_copy_vmcb_save_to_cache() 574 svm_set_efer(vcpu, svm->nested.save.efer); in nested_vmcb02_prepare_save() 899 vmcb01->save.efer = vcpu->arch.efer; in nested_svm_vmrun() 945 to_save->efer = from_save->efer; in svm_copy_vmrun_state() 1007 vmcb12->save.efer = svm->vcpu.arch.efer; in nested_svm_vmexit() 1116 svm_set_efer(vcpu, vmcb01->save.efer); in nested_svm_vmexit() [all …]
|
D | svm.c | 298 int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) in svm_set_efer() argument 301 u64 old_efer = vcpu->arch.efer; in svm_set_efer() 302 vcpu->arch.efer = efer; in svm_set_efer() 306 efer |= EFER_NX; in svm_set_efer() 308 if (!(efer & EFER_LMA)) in svm_set_efer() 309 efer &= ~EFER_LME; in svm_set_efer() 312 if ((old_efer & EFER_SVME) != (efer & EFER_SVME)) { in svm_set_efer() 313 if (!(efer & EFER_SVME)) { in svm_set_efer() 332 vcpu->arch.efer = old_efer; in svm_set_efer() 345 svm->vmcb->save.efer = efer | EFER_SVME; in svm_set_efer() [all …]
|
D | svm.h | 139 u64 efer; member 606 int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer);
|
/linux-6.12.1/arch/x86/include/asm/ |
D | suspend_64.h | 44 unsigned long efer; member
|
D | realmode.h | 52 u64 efer;
|
D | svm.h | 321 u64 efer; member 377 u64 efer; member
|
/linux-6.12.1/arch/x86/power/ |
D | cpu.c | 117 rdmsrl(MSR_EFER, ctxt->efer); in __save_processor_state() 210 wrmsrl(MSR_EFER, ctxt->efer); in __restore_processor_state()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | sync_regs_test.c | 179 (run->s.regs.sregs.efer & EFER_LME), in race_sync_regs() 182 !!(run->s.regs.sregs.efer & EFER_LME)); in race_sync_regs()
|
/linux-6.12.1/arch/x86/kvm/vmx/ |
D | x86_ops.h | 72 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer);
|
D | vmx.c | 1100 u64 guest_efer = vmx->vcpu.arch.efer; in update_transition_efer() 1125 (enable_ept && ((vmx->vcpu.arch.efer ^ kvm_host.efer) & EFER_NX))) { in update_transition_efer() 1128 if (guest_efer != kvm_host.efer) in update_transition_efer() 1130 guest_efer, kvm_host.efer, false); in update_transition_efer() 1143 guest_efer |= kvm_host.efer & ignore_bits; in update_transition_efer() 1903 (vmx->vcpu.arch.efer & EFER_SCE); in vmx_setup_uret_msrs() 3147 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer() argument 3155 vcpu->arch.efer = efer; in vmx_set_efer() 3157 if (efer & EFER_LMA) in vmx_set_efer() 3162 if (KVM_BUG_ON(efer & EFER_LMA, vcpu->kvm)) in vmx_set_efer() [all …]
|
D | nested.c | 2245 return vmx->vcpu.arch.efer | (EFER_LMA | EFER_LME); in nested_vmx_calc_efer() 2247 return vmx->vcpu.arch.efer & ~(EFER_LMA | EFER_LME); in nested_vmx_calc_efer() 2469 if (guest_efer != kvm_host.efer) in prepare_vmcs02_early() 2482 if (cpu_has_load_ia32_efer() && guest_efer != kvm_host.efer) in prepare_vmcs02_early() 2711 vcpu->arch.efer = nested_vmx_calc_efer(vmx, vmcs12); in prepare_vmcs02() 2713 vmx_set_efer(vcpu, vcpu->arch.efer); in prepare_vmcs02() 3007 !!(vcpu->arch.efer & EFER_LMA))) in nested_vmx_check_address_space_size() 4583 vmcs12->guest_ia32_efer = vcpu->arch.efer; in sync_vmcs02_to_vmcs12() 4660 vcpu->arch.efer = vmcs12->host_ia32_efer; in load_vmcs12_host_state() 4662 vcpu->arch.efer |= (EFER_LMA | EFER_LME); in load_vmcs12_host_state() [all …]
|
/linux-6.12.1/arch/x86/include/uapi/asm/ |
D | kvm.h | 151 __u64 efer; member 162 __u64 efer; member
|
/linux-6.12.1/tools/arch/x86/include/uapi/asm/ |
D | kvm.h | 151 __u64 efer; member 162 __u64 efer; member
|
/linux-6.12.1/arch/x86/hyperv/ |
D | hv_vtl.c | 120 input->vp_context.efer = __rdmsr(MSR_EFER); in hv_vtl_bringup_vcpu()
|
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/ |
D | svm.h | 209 u64 efer; member
|
/linux-6.12.1/drivers/parport/ |
D | parport_pc.c | 1114 static void decode_winbond(int efer, int key, int devid, int devrev, int oldid) in decode_winbond() argument 1159 efer, key, devid, devrev, oldid, type); in decode_winbond() 1162 show_parconfig_winbond(efer, key); in decode_winbond() 1165 static void decode_smsc(int efer, int key, int devid, int devrev) in decode_smsc() argument 1191 efer, key, devid, devrev, type); in decode_smsc() 1194 func(efer, key); in decode_smsc()
|