/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | set_sregs_test.c | 47 uint64_t cr4; local 49 cr4 = X86_CR4_VME | X86_CR4_PVI | X86_CR4_TSD | X86_CR4_DE | 53 cr4 |= X86_CR4_UMIP; 55 cr4 |= X86_CR4_LA57; 57 cr4 |= X86_CR4_VMXE; 59 cr4 |= X86_CR4_SMXE; 61 cr4 |= X86_CR4_FSGSBASE; 63 cr4 |= X86_CR4_PCIDE; 65 cr4 |= X86_CR4_OSXSAVE; 67 cr4 | 81 uint64_t cr4; local [all...] |
H A D | cr4_cpuid_sync_test.c | 24 uint64_t cr4 = get_cr4(); local 26 return (this_cpu_has(X86_FEATURE_OSXSAVE) == !!(cr4 & X86_CR4_OSXSAVE)); 31 uint64_t cr4; local 34 cr4 = get_cr4(); 35 cr4 |= X86_CR4_OSXSAVE; 36 set_cr4(cr4); 69 sregs.cr4 &= ~X86_CR4_OSXSAVE;
|
H A D | sync_regs_test.c | 140 __u64 *cr4 = &run->s.regs.sregs.cr4; local 141 __u64 pae_enabled = *cr4; 142 __u64 pae_disabled = *cr4 & ~X86_CR4_PAE; 146 WRITE_ONCE(*cr4, pae_enabled); 150 WRITE_ONCE(*cr4, pae_disabled); 180 TEST_ASSERT((run->s.regs.sregs.cr4 & X86_CR4_PAE) && 183 !!(run->s.regs.sregs.cr4 & X86_CR4_PAE),
|
H A D | amx_test.c | 129 uint64_t cr4, xcr0; local 134 cr4 = get_cr4(); 135 cr4 |= X86_CR4_OSXSAVE; 136 set_cr4(cr4);
|
/linux-master/arch/x86/kernel/ |
H A D | sev_verify_cbit.S | 35 movq %cr4, %rsi 40 movq %rdx, %cr4 71 movq %rsi, %cr4
|
H A D | relocate_kernel_64.S | 71 movq %cr4, %rax 126 movq %cr4, %rax 128 movq %rax, %cr4 145 * Set cr4 to a known state: 154 movq %rax, %cr4 238 movq %rax, %cr4
|
H A D | asm-offsets_64.c | 52 ENTRY(cr4);
|
H A D | relocate_kernel_32.S | 56 movl %cr4, %eax 121 /* clear cr4 if applicable */ 125 * Set cr4 to a known state: 129 movl %eax, %cr4 207 movl %eax, %cr4
|
H A D | process_32.c | 62 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; local 83 cr4 = __read_cr4(); 85 log_lvl, cr0, cr2, cr3, cr4);
|
/linux-master/arch/x86/include/asm/ |
H A D | suspend_32.h | 15 unsigned long cr0, cr2, cr3, cr4; member in struct:saved_context
|
H A D | suspend_64.h | 41 unsigned long cr0, cr2, cr3, cr4; member in struct:saved_context
|
H A D | tlbflush.h | 129 unsigned long cr4; member in struct:tlb_state 177 /* Initialize cr4 shadow for this CPU. */ 180 this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); 422 static inline void __native_tlb_flush_global(unsigned long cr4) argument 424 native_write_cr4(cr4 ^ X86_CR4_PGE); 425 native_write_cr4(cr4);
|
H A D | realmode.h | 53 u32 cr4;
|
/linux-master/arch/x86/power/ |
H A D | hibernate_asm_32.S | 55 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
|
H A D | hibernate_asm_64.S | 36 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
|
H A D | cpu.c | 126 ctxt->cr4 = __read_cr4(); 204 /* cr4 was introduced in the Pentium CPU */ 206 if (ctxt->cr4) 207 __write_cr4(ctxt->cr4); 211 __write_cr4(ctxt->cr4);
|
/linux-master/include/xen/interface/hvm/ |
H A D | hvm_vcpu.h | 25 uint32_t cr4; member in struct:vcpu_hvm_x86_32 88 uint64_t cr4; member in struct:vcpu_hvm_x86_64
|
/linux-master/arch/x86/kernel/cpu/mtrr/ |
H A D | cyrix.c | 135 static u32 cr4, ccr3; variable 143 cr4 = __read_cr4(); 144 __write_cr4(cr4 & ~X86_CR4_PGE); 176 __write_cr4(cr4);
|
/linux-master/arch/x86/platform/pvh/ |
H A D | head.S | 33 * - `cr4`: all bits are cleared. 75 mov %cr4, %eax 77 mov %eax, %cr4 134 mov %cr4, %eax 136 mov %eax, %cr4
|
/linux-master/drivers/misc/lkdtm/ |
H A D | bugs.c | 529 unsigned long cr4; local 532 cr4 = native_read_cr4(); 534 if ((cr4 & X86_CR4_SMEP) != X86_CR4_SMEP) { 538 cr4 &= ~(X86_CR4_SMEP); 541 native_write_cr4(cr4); 542 if (cr4 == native_read_cr4()) { 544 cr4 |= X86_CR4_SMEP; 546 native_write_cr4(cr4); 554 * cr4 write happens, skipping any pinning. This searches for 555 * the cr4 writin [all...] |
/linux-master/arch/x86/mm/ |
H A D | mem_encrypt_boot.S | 102 mov %cr4, %rdx 104 mov %rdx, %cr4 106 mov %rdx, %cr4
|
/linux-master/arch/x86/kvm/ |
H A D | smm.c | 30 CHECK_SMRAM32_OFFSET(cr4, 0xFF14); 96 CHECK_SMRAM64_OFFSET(cr4, 0xFF48); 219 smram->cr4 = kvm_read_cr4(vcpu); 244 smram->cr4 = kvm_read_cr4(vcpu); 415 u64 cr0, u64 cr3, u64 cr4) 422 if (cr4 & X86_CR4_PCIDE) { 436 bad = kvm_set_cr4(vcpu, cr4 & ~X86_CR4_PCIDE); 444 if (cr4 & X86_CR4_PCIDE) { 445 bad = kvm_set_cr4(vcpu, cr4); 499 smstate->cr3, smstate->cr4); 414 rsm_enter_protected_mode(struct kvm_vcpu *vcpu, u64 cr0, u64 cr3, u64 cr4) argument 591 unsigned long cr4; local 613 unsigned long cr4, efer; local [all...] |
H A D | smm.h | 31 u32 cr4; member in struct:kvm_smram_state_32 127 u64 cr4; member in struct:kvm_smram_state_64
|
/linux-master/arch/powerpc/boot/ |
H A D | ppc_asm.h | 17 #define cr4 4 macro
|
/linux-master/arch/x86/platform/olpc/ |
H A D | xo1-wakeup.S | 30 movl %eax, %cr4 64 movl %cr4, %edx
|