Lines Matching refs:cr4
3640 vcpu->arch.cr4 &= ~cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3641 vcpu->arch.cr4 |= vmcs_readl(GUEST_CR4) & cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3677 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
3782 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4() argument
3791 (cr4 & ~X86_CR4_MCE) | in vmx_set_cr4()
3795 if (cr4 & X86_CR4_VMXE) { in vmx_set_cr4()
3806 ((cr4 & VMXON_CR4_ALWAYSON) != VMXON_CR4_ALWAYSON)) in vmx_set_cr4()
3809 vcpu->arch.cr4 = cr4; in vmx_set_cr4()
3814 } else if (!(cr4 & X86_CR4_PAE)) { in vmx_set_cr4()
3829 vmcs_writel(CR4_READ_SHADOW, cr4); in vmx_set_cr4()
4633 unsigned long cr4; in vmx_set_constant_host_state() local
4639 cr4 = cr4_read_shadow(); in vmx_set_constant_host_state()
4640 vmcs_writel(HOST_CR4, cr4); /* 22.2.3, 22.2.5 */ in vmx_set_constant_host_state()
4641 vmx->host_state.vmcs_host_cr4 = cr4; in vmx_set_constant_host_state()
7938 unsigned long cr4 = vmcs_readl(GUEST_CR4); in dump_vmcs() local
7950 cr4, vmcs_readl(CR4_READ_SHADOW), vmcs_readl(CR4_GUEST_HOST_MASK)); in dump_vmcs()
7953 (cr4 & X86_CR4_PAE) && !(efer & EFER_LMA)) in dump_vmcs()
8530 unsigned long debugctlmsr, cr4; in vmx_vcpu_run() local
8556 cr4 = cr4_read_shadow(); in vmx_vcpu_run()
8557 if (unlikely(cr4 != vmx->host_state.vmcs_host_cr4)) { in vmx_vcpu_run()
8558 vmcs_writel(HOST_CR4, cr4); in vmx_vcpu_run()
8559 vmx->host_state.vmcs_host_cr4 = cr4; in vmx_vcpu_run()