Home
last modified time | relevance | path

Searched refs:efer (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.12.1/arch/x86/realmode/
Dinit.c100 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/
Dsvm.c73 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/
Dhvm_vcpu.h35 uint64_t efer; member
89 uint64_t efer; member
/linux-6.12.1/arch/x86/kvm/
Dsmm.c82 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()
Demulate.c783 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 …]
Dsmm.h104 u64 efer; member
Dx86.h44 u64 efer; member
169 return !!(vcpu->arch.efer & EFER_LMA); in is_long_mode()
Dmmu.h86 unsigned long cr4, u64 efer, gpa_t nested_cr3);
Dx86.c1169 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/
Dnested.c98 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 …]
Dsvm.c298 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 …]
Dsvm.h139 u64 efer; member
606 int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer);
/linux-6.12.1/arch/x86/include/asm/
Dsuspend_64.h44 unsigned long efer; member
Drealmode.h52 u64 efer;
Dsvm.h321 u64 efer; member
377 u64 efer; member
/linux-6.12.1/arch/x86/power/
Dcpu.c117 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/
Dsync_regs_test.c179 (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/
Dx86_ops.h72 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer);
Dvmx.c1100 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 …]
Dnested.c2245 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/
Dkvm.h151 __u64 efer; member
162 __u64 efer; member
/linux-6.12.1/tools/arch/x86/include/uapi/asm/
Dkvm.h151 __u64 efer; member
162 __u64 efer; member
/linux-6.12.1/arch/x86/hyperv/
Dhv_vtl.c120 input->vp_context.efer = __rdmsr(MSR_EFER); in hv_vtl_bringup_vcpu()
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/
Dsvm.h209 u64 efer; member
/linux-6.12.1/drivers/parport/
Dparport_pc.c1114 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()

12