Lines Matching refs:cr0
58 CHECK_SMRAM32_OFFSET(cr0, 0xFFFC); in check_smram_offsets()
98 CHECK_SMRAM64_OFFSET(cr0, 0xFF58); in check_smram_offsets()
189 smram->cr0 = kvm_read_cr0(vcpu); in enter_smm_save_state_32()
242 smram->cr0 = kvm_read_cr0(vcpu); in enter_smm_save_state_64()
278 unsigned long cr0; in enter_smm() local
318 cr0 = vcpu->arch.cr0 & ~(X86_CR0_PE | X86_CR0_EM | X86_CR0_TS | X86_CR0_PG); in enter_smm()
319 kvm_x86_call(set_cr0)(vcpu, cr0); in enter_smm()
415 u64 cr0, u64 cr3, u64 cr4) in rsm_enter_protected_mode() argument
440 bad = kvm_set_cr0(vcpu, cr0); in rsm_enter_protected_mode()
498 r = rsm_enter_protected_mode(vcpu, smstate->cr0, in rsm_load_state_32()
546 r = rsm_enter_protected_mode(vcpu, smstate->cr0, smstate->cr3, smstate->cr4); in rsm_load_state_64()
567 unsigned long cr0; in emulator_leave_smm() local
607 cr0 = kvm_read_cr0(vcpu); in emulator_leave_smm()
608 if (cr0 & X86_CR0_PE) in emulator_leave_smm()
609 kvm_set_cr0(vcpu, cr0 & ~(X86_CR0_PG | X86_CR0_PE)); in emulator_leave_smm()