Home
last modified time | relevance | path

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

/linux-4.4.14/arch/x86/include/asm/
Dtlbflush.h28 unsigned long cr4; member
35 this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); in cr4_init_shadow()
41 unsigned long cr4; in cr4_set_bits() local
43 cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_set_bits()
44 if ((cr4 | mask) != cr4) { in cr4_set_bits()
45 cr4 |= mask; in cr4_set_bits()
46 this_cpu_write(cpu_tlbstate.cr4, cr4); in cr4_set_bits()
47 __write_cr4(cr4); in cr4_set_bits()
54 unsigned long cr4; in cr4_clear_bits() local
56 cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_clear_bits()
[all …]
Dsuspend_32.h15 unsigned long cr0, cr2, cr3, cr4; member
Dsuspend_64.h24 unsigned long cr0, cr2, cr3, cr4, cr8; member
Drealmode.h40 u32 cr4;
Dsvm.h154 u64 cr4; member
Dkvm_host.h396 unsigned long cr4; member
796 int (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);
1026 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
/linux-4.4.14/arch/x86/power/
Dhibernate_asm_32.S35 jecxz 1f # cr4 Pentium and higher, skip if zero
37 movl %ecx, %cr4; # turn off PGE
65 jecxz 1f # cr4 Pentium and higher, skip if zero
66 movl %ecx, %cr4; # turn PGE back on
Dcpu.c108 ctxt->cr4 = __read_cr4_safe(); in __save_processor_state()
176 if (ctxt->cr4) in __restore_processor_state()
177 __write_cr4(ctxt->cr4); in __restore_processor_state()
182 __write_cr4(ctxt->cr4); in __restore_processor_state()
Dhibernate_asm_64.S65 movq %rdx, %cr4; # turn off PGE
68 movq %rax, %cr4; # turn PGE back on
117 movq %rdx, %cr4; # turn off PGE
120 movq %rax, %cr4; # turn PGE back on
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/
Dcyrix.c133 static u32 cr4, ccr3; variable
141 cr4 = __read_cr4(); in prepare_set()
142 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
174 __write_cr4(cr4); in post_set()
Dgeneric.c716 static unsigned long cr4; variable
746 cr4 = __read_cr4(); in prepare_set()
747 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
776 __write_cr4(cr4); in post_set()
/linux-4.4.14/arch/x86/platform/efi/
Defi_stub_64.S45 movq %cr4, %r15
48 movq %r14, %cr4
49 movq %r15, %cr4
/linux-4.4.14/arch/x86/kernel/
Drelocate_kernel_64.S67 movq %cr4, %rax
127 movq %rax, %cr4
196 movq %rax, %cr4
Dprocess_32.c71 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
104 cr4 = __read_cr4_safe(); in __show_regs()
106 cr0, cr2, cr3, cr4); in __show_regs()
Drelocate_kernel_32.S57 movl %cr4, %eax
127 movl %eax, %cr4
199 movl %eax, %cr4
Dasm-offsets_64.c56 ENTRY(cr4); in main()
Dprocess_64.c60 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
96 cr4 = __read_cr4(); in __show_regs()
103 cr4); in __show_regs()
Dhead_64.S188 movq %rcx, %cr4
Dhead_32.S362 movl %eax,%cr4
/linux-4.4.14/arch/x86/platform/olpc/
Dxo1-wakeup.S29 movl %eax, %cr4
63 movl %cr4, %edx
/linux-4.4.14/arch/x86/boot/compressed/
Defi_thunk_64.S150 movl %cr4, %eax
152 movl %eax, %cr4
Dhead_64.S117 movl %cr4, %eax
119 movl %eax, %cr4
/linux-4.4.14/arch/powerpc/boot/
Dppc_asm.h21 #define cr4 4 macro
/linux-4.4.14/arch/powerpc/kernel/
Dcpu_setup_6xx.S339 cmplwi cr4,r3,0x8002 /* 7457 */
347 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
410 cmplwi cr4,r3,0x8002 /* 7457 */
418 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
Didle_power7.S353 bne cr4,subcore_state_restored
396 bne cr4,clear_lock
416 bne cr4,hypervisor_state_restored
Dexceptions-64s.S119 cmpwi cr4,r5,1
/linux-4.4.14/arch/score/kernel/
Dhead.S55 mtcr r30, cr4
/linux-4.4.14/arch/sh/include/cpu-sh5/cpu/
Dregisters.h29 #define INTEVT cr4
/linux-4.4.14/arch/x86/realmode/
Dinit.c83 trampoline_cr4_features = &trampoline_header->cr4; in setup_real_mode()
/linux-4.4.14/arch/x86/kvm/
Dkvm_cache_regs.h66 return vcpu->arch.cr4 & mask; in kvm_read_cr4_bits()
Dsvm.c1087 save->cr4 = X86_CR4_PAE; in init_vmcb()
1099 save->cr4 = 0; in init_vmcb()
1504 static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in svm_set_cr4() argument
1507 unsigned long old_cr4 = to_svm(vcpu)->vmcb->save.cr4; in svm_set_cr4()
1509 if (cr4 & X86_CR4_VMXE) in svm_set_cr4()
1512 if (npt_enabled && ((old_cr4 ^ cr4) & X86_CR4_PGE)) in svm_set_cr4()
1515 vcpu->arch.cr4 = cr4; in svm_set_cr4()
1517 cr4 |= X86_CR4_PAE; in svm_set_cr4()
1518 cr4 |= host_cr4_mce; in svm_set_cr4()
1519 to_svm(vcpu)->vmcb->save.cr4 = cr4; in svm_set_cr4()
[all …]
Demulate.c2334 u64 cr0, u64 cr4) in rsm_enter_protected_mode() argument
2343 bad = ctxt->ops->set_cr(ctxt, 4, cr4 & ~X86_CR4_PCIDE); in rsm_enter_protected_mode()
2351 if (cr4 & X86_CR4_PCIDE) { in rsm_enter_protected_mode()
2352 bad = ctxt->ops->set_cr(ctxt, 4, cr4); in rsm_enter_protected_mode()
2365 u32 val, cr0, cr4; in rsm_load_state_32() local
2407 cr4 = GET_SMSTATE(u32, smbase, 0x7f14); in rsm_load_state_32()
2411 return rsm_enter_protected_mode(ctxt, cr0, cr4); in rsm_load_state_32()
2418 u64 val, cr0, cr4; in rsm_load_state_64() local
2436 cr4 = GET_SMSTATE(u64, smbase, 0x7f48); in rsm_load_state_64()
2463 r = rsm_enter_protected_mode(ctxt, cr0, cr4); in rsm_load_state_64()
[all …]
Dvmx.c3640 vcpu->arch.cr4 &= ~cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3641 vcpu->arch.cr4 |= vmcs_readl(GUEST_CR4) & cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3677 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
3782 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4() argument
3791 (cr4 & ~X86_CR4_MCE) | in vmx_set_cr4()
3795 if (cr4 & X86_CR4_VMXE) { in vmx_set_cr4()
3806 ((cr4 & VMXON_CR4_ALWAYSON) != VMXON_CR4_ALWAYSON)) in vmx_set_cr4()
3809 vcpu->arch.cr4 = cr4; in vmx_set_cr4()
3814 } else if (!(cr4 & X86_CR4_PAE)) { in vmx_set_cr4()
3829 vmcs_writel(CR4_READ_SHADOW, cr4); in vmx_set_cr4()
[all …]
Dx86.c718 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in kvm_set_cr4() argument
724 if (cr4 & CR4_RESERVED_BITS) in kvm_set_cr4()
727 if (!guest_cpuid_has_xsave(vcpu) && (cr4 & X86_CR4_OSXSAVE)) in kvm_set_cr4()
730 if (!guest_cpuid_has_smep(vcpu) && (cr4 & X86_CR4_SMEP)) in kvm_set_cr4()
733 if (!guest_cpuid_has_smap(vcpu) && (cr4 & X86_CR4_SMAP)) in kvm_set_cr4()
736 if (!guest_cpuid_has_fsgsbase(vcpu) && (cr4 & X86_CR4_FSGSBASE)) in kvm_set_cr4()
740 if (!(cr4 & X86_CR4_PAE)) in kvm_set_cr4()
742 } else if (is_paging(vcpu) && (cr4 & X86_CR4_PAE) in kvm_set_cr4()
743 && ((cr4 ^ old_cr4) & pdptr_bits) in kvm_set_cr4()
748 if ((cr4 & X86_CR4_PCIDE) && !(old_cr4 & X86_CR4_PCIDE)) { in kvm_set_cr4()
[all …]
/linux-4.4.14/arch/x86/realmode/rm/
Dwakeup_asm.S116 movl %eax, %cr4
/linux-4.4.14/arch/x86/kernel/acpi/
Dwakeup_64.S85 movq %rbx, %cr4
/linux-4.4.14/Documentation/virtual/kvm/
Dmmu.txt162 Contains the value of cr4.pae for which the page is valid (e.g. whether
169 Contains the value of cr4.smep && !cr0.wp for which the page is valid
173 Contains the value of cr4.smap && !cr0.wp for which the page is valid
327 - mov to cr0/cr4/efer
374 exists when an spte created with cr0.wp=0 and cr4.smep=0 is used after
375 changing cr4.smep to 1. To avoid this, the value of !cr0.wp && cr4.smep
Dapi.txt349 __u64 cr0, cr2, cr3, cr4, cr8;
/linux-4.4.14/arch/s390/kernel/
Dhead64.S56 .quad 0 # cr4: instruction authorization
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dchip.c645 static u32 brcmf_chip_tcm_ramsize(struct brcmf_core_priv *cr4) in brcmf_chip_tcm_ramsize() argument
655 corecap = brcmf_chip_core_read32(cr4, ARMCR4_CAP); in brcmf_chip_tcm_ramsize()
662 brcmf_chip_core_write32(cr4, ARMCR4_BANKIDX, idx); in brcmf_chip_tcm_ramsize()
663 bxinfo = brcmf_chip_core_read32(cr4, ARMCR4_BANKINFO); in brcmf_chip_tcm_ramsize()
/linux-4.4.14/arch/x86/include/uapi/asm/
Dkvm.h150 __u64 cr0, cr2, cr3, cr4, cr8; member
/linux-4.4.14/arch/x86/xen/
Denlighten.c1017 static void xen_write_cr4(unsigned long cr4) in xen_write_cr4() argument
1019 cr4 &= ~(X86_CR4_PGE | X86_CR4_PSE | X86_CR4_PCE); in xen_write_cr4()
1021 native_write_cr4(cr4); in xen_write_cr4()
/linux-4.4.14/drivers/parport/
Dparport_pc.c958 int cr1, cr4, cra, cr23, cr26, cr27; in show_parconfig_smsc37c669() local
972 cr4 = inb(io + 1); in show_parconfig_smsc37c669()
987 cr1, cr4, cra, cr23, cr26, cr27); in show_parconfig_smsc37c669()
1004 : modes[cr4 & 0x03], in show_parconfig_smsc37c669()
1005 (cr4 & 0x40) ? "1.7" : "1.9"); in show_parconfig_smsc37c669()
/linux-4.4.14/drivers/tty/serial/
Dfsl_lpuart.c1206 unsigned char cr1, old_cr1, old_cr2, cr4, bdh, modem; in lpuart_set_termios() local
1213 cr4 = readb(sport->port.membase + UARTCR4); in lpuart_set_termios()
1323 cr4 &= ~UARTCR4_BRFA_MASK; in lpuart_set_termios()
1325 writeb(cr4 | brfa, sport->port.membase + UARTCR4); in lpuart_set_termios()
/linux-4.4.14/arch/x86/mm/
Dinit.c741 .cr4 = ~0UL, /* fail hard if we screw up cr4 shadow initialization */
/linux-4.4.14/arch/powerpc/include/asm/
Dppc_asm.h555 #define cr4 4 macro
/linux-4.4.14/drivers/video/fbdev/sis/
Dinit301.c6042 unsigned char cr4, cr14, cr5, cr15; in SiS_SetGroup1() local
6044 cr4 = SiS_Pr->CCRT1CRTC[4]; in SiS_SetGroup1()
6049 cr4 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[4]; in SiS_SetGroup1()
6054 tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */ in SiS_SetGroup1()