Lines Matching refs:cr4
3498 vcpu->arch.cr4 &= ~cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3499 vcpu->arch.cr4 |= vmcs_readl(GUEST_CR4) & cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3535 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
3640 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4() argument
3649 (cr4 & ~X86_CR4_MCE) | in vmx_set_cr4()
3653 if (cr4 & X86_CR4_VMXE) { in vmx_set_cr4()
3664 ((cr4 & VMXON_CR4_ALWAYSON) != VMXON_CR4_ALWAYSON)) in vmx_set_cr4()
3667 vcpu->arch.cr4 = cr4; in vmx_set_cr4()
3672 } else if (!(cr4 & X86_CR4_PAE)) { in vmx_set_cr4()
3687 vmcs_writel(CR4_READ_SHADOW, cr4); in vmx_set_cr4()
4485 unsigned long cr4; in vmx_set_constant_host_state() local
4491 cr4 = cr4_read_shadow(); in vmx_set_constant_host_state()
4492 vmcs_writel(HOST_CR4, cr4); /* 22.2.3, 22.2.5 */ in vmx_set_constant_host_state()
4493 vmx->host_state.vmcs_host_cr4 = cr4; in vmx_set_constant_host_state()
8169 unsigned long debugctlmsr, cr4; in vmx_vcpu_run() local
8195 cr4 = cr4_read_shadow(); in vmx_vcpu_run()
8196 if (unlikely(cr4 != vmx->host_state.vmcs_host_cr4)) { in vmx_vcpu_run()
8197 vmcs_writel(HOST_CR4, cr4); in vmx_vcpu_run()
8198 vmx->host_state.vmcs_host_cr4 = cr4; in vmx_vcpu_run()