Lines Matching refs:cr4
30 CHECK_SMRAM32_OFFSET(cr4, 0xFF14); in check_smram_offsets()
96 CHECK_SMRAM64_OFFSET(cr4, 0xFF48); in check_smram_offsets()
219 smram->cr4 = kvm_read_cr4(vcpu); in enter_smm_save_state_32()
244 smram->cr4 = kvm_read_cr4(vcpu); in enter_smm_save_state_64()
415 u64 cr0, u64 cr3, u64 cr4) in rsm_enter_protected_mode() argument
422 if (cr4 & X86_CR4_PCIDE) { in rsm_enter_protected_mode()
436 bad = kvm_set_cr4(vcpu, cr4 & ~X86_CR4_PCIDE); in rsm_enter_protected_mode()
444 if (cr4 & X86_CR4_PCIDE) { in rsm_enter_protected_mode()
445 bad = kvm_set_cr4(vcpu, cr4); in rsm_enter_protected_mode()
499 smstate->cr3, smstate->cr4); in rsm_load_state_32()
546 r = rsm_enter_protected_mode(vcpu, smstate->cr0, smstate->cr3, smstate->cr4); in rsm_load_state_64()
591 unsigned long cr4; in emulator_leave_smm() local
594 cr4 = kvm_read_cr4(vcpu); in emulator_leave_smm()
595 if (cr4 & X86_CR4_PCIDE) in emulator_leave_smm()
596 kvm_set_cr4(vcpu, cr4 & ~X86_CR4_PCIDE); in emulator_leave_smm()
613 unsigned long cr4, efer; in emulator_leave_smm() local
616 cr4 = kvm_read_cr4(vcpu); in emulator_leave_smm()
617 if (cr4 & X86_CR4_PAE) in emulator_leave_smm()
618 kvm_set_cr4(vcpu, cr4 & ~X86_CR4_PAE); in emulator_leave_smm()