Home
last modified time | relevance | path

Searched refs:cr4 (Results 1 – 25 of 70) sorted by relevance

123

/linux/tools/testing/selftests/kvm/x86_64/
A Dset_sregs_test.c51 uint64_t cr4; in calc_cr4_feature_bits() local
60 cr4 |= X86_CR4_UMIP; in calc_cr4_feature_bits()
62 cr4 |= X86_CR4_LA57; in calc_cr4_feature_bits()
64 cr4 |= X86_CR4_VMXE; in calc_cr4_feature_bits()
66 cr4 |= X86_CR4_SMXE; in calc_cr4_feature_bits()
78 cr4 |= X86_CR4_PKE; in calc_cr4_feature_bits()
80 return cr4; in calc_cr4_feature_bits()
87 uint64_t cr4; in main() local
104 cr4 = sregs.cr4; in main()
110 TEST_ASSERT(sregs.cr4 == cr4, "sregs.CR4 (0x%llx) != CR4 (0x%lx)", in main()
[all …]
A Dcr4_cpuid_sync_test.c30 uint64_t cr4; in cr4_cpuid_is_sync() local
38 cr4 = get_cr4(); in cr4_cpuid_is_sync()
40 return (!!(ecx & X86_FEATURE_OSXSAVE)) == (!!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
45 uint64_t cr4; in guest_code() local
48 cr4 = get_cr4(); in guest_code()
49 cr4 |= X86_CR4_OSXSAVE; in guest_code()
50 set_cr4(cr4); in guest_code()
99 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
/linux/drivers/misc/lkdtm/
A Dbugs.c451 unsigned long cr4; in lkdtm_UNSET_SMEP() local
454 cr4 = native_read_cr4(); in lkdtm_UNSET_SMEP()
456 if ((cr4 & X86_CR4_SMEP) != X86_CR4_SMEP) { in lkdtm_UNSET_SMEP()
460 cr4 &= ~(X86_CR4_SMEP); in lkdtm_UNSET_SMEP()
463 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
464 if (cr4 == native_read_cr4()) { in lkdtm_UNSET_SMEP()
466 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
468 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
497 direct_write_cr4(cr4); in lkdtm_UNSET_SMEP()
502 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
[all …]
/linux/arch/x86/power/
A Dhibernate_asm_32.S55 jecxz 1f # cr4 Pentium and higher, skip if zero
57 movl %ecx, %cr4; # turn off PGE
89 jecxz 1f # cr4 Pentium and higher, skip if zero
90 movl %ecx, %cr4; # turn PGE back on
A Dhibernate_asm_64.S36 movq %rdx, %cr4; # turn off PGE
39 movq %rax, %cr4; # turn PGE back on
127 movq %rcx, %cr4; # turn off PGE
130 movq %rbx, %cr4; # turn PGE back on
A Dcpu.c123 ctxt->cr4 = __read_cr4(); in __save_processor_state()
203 if (ctxt->cr4) in __restore_processor_state()
204 __write_cr4(ctxt->cr4); in __restore_processor_state()
208 __write_cr4(ctxt->cr4); in __restore_processor_state()
/linux/arch/x86/kernel/
A Dsev_verify_cbit.S35 movq %cr4, %rsi
40 movq %rdx, %cr4
71 movq %rsi, %cr4
A Dprocess_32.c62 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
86 cr4 = __read_cr4(); in __show_regs()
88 log_lvl, cr0, cr2, cr3, cr4); in __show_regs()
A Drelocate_kernel_64.S68 movq %cr4, %rax
141 movq %rax, %cr4
220 movq %rax, %cr4
A Dprocess.c643 unsigned long newval, cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_toggle_bits_irqsoff() local
645 newval = cr4 ^ mask; in cr4_toggle_bits_irqsoff()
646 if (newval != cr4) { in cr4_toggle_bits_irqsoff()
647 this_cpu_write(cpu_tlbstate.cr4, newval); in cr4_toggle_bits_irqsoff()
A Drelocate_kernel_32.S54 movl %cr4, %eax
125 movl %eax, %cr4
198 movl %eax, %cr4
/linux/arch/x86/platform/pvh/
A Dhead.S73 mov %cr4, %eax
75 mov %eax, %cr4
132 mov %cr4, %eax
134 mov %eax, %cr4
/linux/arch/x86/kernel/cpu/mtrr/
A Dcyrix.c135 static u32 cr4, ccr3; variable
143 cr4 = __read_cr4(); in prepare_set()
144 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
176 __write_cr4(cr4); in post_set()
/linux/arch/x86/mm/
A Dmem_encrypt_boot.S99 mov %cr4, %rdx
101 mov %rdx, %cr4
103 mov %rdx, %cr4
A Dtlb.c1151 unsigned long cr4, flags; in native_flush_tlb_global() local
1171 cr4 = this_cpu_read(cpu_tlbstate.cr4); in native_flush_tlb_global()
1173 native_write_cr4(cr4 ^ X86_CR4_PGE); in native_flush_tlb_global()
1175 native_write_cr4(cr4); in native_flush_tlb_global()
/linux/arch/x86/kernel/cpu/
A Dcommon.c411 unsigned long newval, cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_update_irqsoff() local
415 newval = (cr4 & ~clear) | set; in cr4_update_irqsoff()
416 if (newval != cr4) { in cr4_update_irqsoff()
417 this_cpu_write(cpu_tlbstate.cr4, newval); in cr4_update_irqsoff()
426 return this_cpu_read(cpu_tlbstate.cr4); in cr4_read_shadow()
432 unsigned long cr4 = __read_cr4(); in cr4_init() local
435 cr4 |= X86_CR4_PCIDE; in cr4_init()
437 cr4 = (cr4 & ~cr4_pinned_mask) | cr4_pinned_bits; in cr4_init()
439 __write_cr4(cr4); in cr4_init()
442 this_cpu_write(cpu_tlbstate.cr4, cr4); in cr4_init()
[all …]
/linux/include/xen/interface/hvm/
A Dhvm_vcpu.h25 uint32_t cr4; member
88 uint64_t cr4; member
/linux/tools/testing/selftests/kvm/include/x86_64/
A Dprocessor.h236 uint64_t cr4; in get_cr4() local
239 : /* output */ [cr4]"=r"(cr4)); in get_cr4()
240 return cr4; in get_cr4()
/linux/tools/testing/selftests/kvm/lib/x86_64/
A Dvmx.c136 unsigned long cr4; in prepare_for_vmx_operation() local
148 __asm__ __volatile__("mov %%cr4, %0" : "=r"(cr4) : : "memory"); in prepare_for_vmx_operation()
149 cr4 &= rdmsr(MSR_IA32_VMX_CR4_FIXED1); in prepare_for_vmx_operation()
150 cr4 |= rdmsr(MSR_IA32_VMX_CR4_FIXED0); in prepare_for_vmx_operation()
152 cr4 |= X86_CR4_VMXE; in prepare_for_vmx_operation()
153 __asm__ __volatile__("mov %0, %%cr4" : : "r"(cr4) : "memory"); in prepare_for_vmx_operation()
/linux/arch/x86/include/asm/
A Dtlbflush.h114 unsigned long cr4; member
165 this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); in cr4_init_shadow()
/linux/arch/x86/platform/olpc/
A Dxo1-wakeup.S30 movl %eax, %cr4
64 movl %cr4, %edx
/linux/arch/x86/kvm/svm/
A Dnested.c107 kvm_init_shadow_npt_mmu(vcpu, X86_CR0_PG, svm->vmcb01.ptr->save.cr4, in nested_svm_init_mmu_context()
287 if (CC(!(save->cr4 & X86_CR4_PAE)) || in nested_vmcb_check_cr3_cr4()
293 if (CC(!kvm_is_valid_cr4(vcpu, save->cr4))) in nested_vmcb_check_cr3_cr4()
501 svm_set_cr4(&svm->vcpu, vmcb12->save.cr4); in nested_vmcb02_prepare_save()
698 svm->vmcb01.ptr->save.cr4 = vcpu->arch.cr4; in nested_svm_vmrun()
743 to_save->cr4 = from_save->cr4; in svm_copy_vmrun_state()
808 vmcb12->save.cr4 = svm->vcpu.arch.cr4; in nested_svm_vmexit()
865 svm_set_cr4(vcpu, svm->vmcb->save.cr4); in nested_svm_vmexit()
/linux/arch/x86/boot/compressed/
A Defi_thunk_64.S144 movl %cr4, %eax
146 movl %eax, %cr4
A Dhead_64.S172 movl %cr4, %eax
174 movl %eax, %cr4
626 movl %cr4, %eax
632 movl %cr4, %eax
656 movl %eax, %cr4
/linux/arch/powerpc/kernel/
A Dcpu_setup_6xx.S337 cmplwi cr4,r3,0x8002 /* 7457 */
345 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
408 cmplwi cr4,r3,0x8002 /* 7457 */
416 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq

Completed in 33 milliseconds

123