Searched refs:cr4 (Results 1 - 25 of 77) sorted by relevance

1234

/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dset_sregs_test.c47 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 Dcr4_cpuid_sync_test.c24 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 Dsync_regs_test.c140 __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 Damx_test.c129 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 Dsev_verify_cbit.S35 movq %cr4, %rsi
40 movq %rdx, %cr4
71 movq %rsi, %cr4
H A Drelocate_kernel_64.S71 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 Dasm-offsets_64.c52 ENTRY(cr4);
H A Drelocate_kernel_32.S56 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 Dprocess_32.c62 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 Dsuspend_32.h15 unsigned long cr0, cr2, cr3, cr4; member in struct:saved_context
H A Dsuspend_64.h41 unsigned long cr0, cr2, cr3, cr4; member in struct:saved_context
H A Dtlbflush.h129 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 Drealmode.h53 u32 cr4;
/linux-master/arch/x86/power/
H 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
H 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
H A Dcpu.c126 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 Dhvm_vcpu.h25 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 Dcyrix.c135 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 Dhead.S33 * - `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 Dbugs.c529 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 Dmem_encrypt_boot.S102 mov %cr4, %rdx
104 mov %rdx, %cr4
106 mov %rdx, %cr4
/linux-master/arch/x86/kvm/
H A Dsmm.c30 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 Dsmm.h31 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 Dppc_asm.h17 #define cr4 4 macro
/linux-master/arch/x86/platform/olpc/
H A Dxo1-wakeup.S30 movl %eax, %cr4
64 movl %cr4, %edx

Completed in 178 milliseconds

1234