Lines Matching refs:cr0
1979 ulong cr0; in vmx_fpu_activate() local
1984 cr0 = vmcs_readl(GUEST_CR0); in vmx_fpu_activate()
1985 cr0 &= ~(X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
1986 cr0 |= kvm_read_cr0_bits(vcpu, X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
1987 vmcs_writel(GUEST_CR0, cr0); in vmx_fpu_activate()
2035 (vcpu->arch.cr0 & X86_CR0_TS); in vmx_fpu_deactivate()
2038 vmcs_writel(CR0_READ_SHADOW, vcpu->arch.cr0); in vmx_fpu_deactivate()
3483 vcpu->arch.cr0 &= ~cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3484 vcpu->arch.cr0 |= vmcs_readl(GUEST_CR0) & cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3538 unsigned long cr0, in ept_update_paging_mode_cr0() argument
3543 if (!(cr0 & X86_CR0_PG)) { in ept_update_paging_mode_cr0()
3549 vcpu->arch.cr0 = cr0; in ept_update_paging_mode_cr0()
3557 vcpu->arch.cr0 = cr0; in ept_update_paging_mode_cr0()
3561 if (!(cr0 & X86_CR0_WP)) in ept_update_paging_mode_cr0()
3565 static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0() argument
3570 hw_cr0 = (cr0 & ~KVM_GUEST_CR0_MASK); in vmx_set_cr0()
3576 if (vmx->rmode.vm86_active && (cr0 & X86_CR0_PE)) in vmx_set_cr0()
3579 if (!vmx->rmode.vm86_active && !(cr0 & X86_CR0_PE)) in vmx_set_cr0()
3585 if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) in vmx_set_cr0()
3587 if (is_paging(vcpu) && !(cr0 & X86_CR0_PG)) in vmx_set_cr0()
3593 ept_update_paging_mode_cr0(&hw_cr0, cr0, vcpu); in vmx_set_cr0()
3598 vmcs_writel(CR0_READ_SHADOW, cr0); in vmx_set_cr0()
3600 vcpu->arch.cr0 = cr0; in vmx_set_cr0()
4808 vmx->vcpu.arch.cr0 = X86_CR0_NW | X86_CR0_CD | X86_CR0_ET; in vmx_vcpu_reset()
5306 vcpu->arch.cr0 &= ~X86_CR0_TS; in handle_clts()