Lines Matching refs:efer
516 if ((vcpu->arch.efer & EFER_LME)) { in kvm_set_cr0()
814 static int set_efer(struct kvm_vcpu *vcpu, u64 efer) in set_efer() argument
816 u64 old_efer = vcpu->arch.efer; in set_efer()
818 if (efer & efer_reserved_bits) in set_efer()
822 && (vcpu->arch.efer & EFER_LME) != (efer & EFER_LME)) in set_efer()
825 if (efer & EFER_FFXSR) { in set_efer()
833 if (efer & EFER_SVME) { in set_efer()
841 efer &= ~EFER_LMA; in set_efer()
842 efer |= vcpu->arch.efer & EFER_LMA; in set_efer()
844 kvm_x86_ops->set_efer(vcpu, efer); in set_efer()
846 vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled; in set_efer()
849 if ((efer ^ old_efer) & EFER_NX) in set_efer()
1952 data = vcpu->arch.efer; in kvm_get_msr_common()
5635 sregs->efer = vcpu->arch.efer; in kvm_arch_vcpu_ioctl_get_sregs()
5708 mmu_reset_needed |= vcpu->arch.efer != sregs->efer; in kvm_arch_vcpu_ioctl_set_sregs()
5709 kvm_x86_ops->set_efer(vcpu, sregs->efer); in kvm_arch_vcpu_ioctl_set_sregs()