Home
last modified time | relevance | path

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

/linux-4.1.27/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.h360 unsigned long cr4; member
735 int (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);
961 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
/linux-4.1.27/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
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
Dcpu.c109 ctxt->cr4 = __read_cr4_safe(); in __save_processor_state()
175 if (ctxt->cr4) in __restore_processor_state()
176 __write_cr4(ctxt->cr4); in __restore_processor_state()
181 __write_cr4(ctxt->cr4); in __restore_processor_state()
/linux-4.1.27/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.c651 static unsigned long cr4; variable
681 cr4 = __read_cr4(); in prepare_set()
682 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
711 __write_cr4(cr4); in post_set()
/linux-4.1.27/arch/x86/platform/efi/
Defi_stub_64.S45 movq %cr4, %r15
48 movq %r14, %cr4
49 movq %r15, %cr4
/linux-4.1.27/arch/x86/kernel/
Drelocate_kernel_64.S67 movq %cr4, %rax
127 movq %rax, %cr4
196 movq %rax, %cr4
Drelocate_kernel_32.S57 movl %cr4, %eax
127 movl %eax, %cr4
199 movl %eax, %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()
Dprocess_64.c61 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
97 cr4 = __read_cr4(); in __show_regs()
104 cr4); in __show_regs()
Dasm-offsets_64.c77 ENTRY(cr4); in main()
Dhead_64.S188 movq %rcx, %cr4
Dhead_32.S363 movl %eax,%cr4
/linux-4.1.27/arch/x86/platform/olpc/
Dxo1-wakeup.S29 movl %eax, %cr4
63 movl %cr4, %edx
/linux-4.1.27/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.1.27/arch/powerpc/boot/
Dppc_asm.h21 #define cr4 4 macro
/linux-4.1.27/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.S120 cmpwi cr4,r5,1
/linux-4.1.27/arch/score/kernel/
Dhead.S55 mtcr r30, cr4
/linux-4.1.27/arch/sh/include/cpu-sh5/cpu/
Dregisters.h29 #define INTEVT cr4
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dchip.c615 static u32 brcmf_chip_tcm_ramsize(struct brcmf_core_priv *cr4) in brcmf_chip_tcm_ramsize() argument
625 corecap = brcmf_chip_core_read32(cr4, ARMCR4_CAP); in brcmf_chip_tcm_ramsize()
632 brcmf_chip_core_write32(cr4, ARMCR4_BANKIDX, idx); in brcmf_chip_tcm_ramsize()
633 bxinfo = brcmf_chip_core_read32(cr4, ARMCR4_BANKINFO); in brcmf_chip_tcm_ramsize()
907 struct brcmf_core_priv *cr4; in brcmf_chip_disable_arm() local
920 cr4 = container_of(core, struct brcmf_core_priv, pub); in brcmf_chip_disable_arm()
923 val = chip->ops->read32(chip->ctx, cr4->wrapbase + BCMA_IOCTL); in brcmf_chip_disable_arm()
/linux-4.1.27/arch/x86/realmode/
Dinit.c83 trampoline_cr4_features = &trampoline_header->cr4; in setup_real_mode()
/linux-4.1.27/arch/x86/kvm/
Dkvm_cache_regs.h66 return vcpu->arch.cr4 & mask; in kvm_read_cr4_bits()
Dsvm.c1173 save->cr4 = X86_CR4_PAE; in init_vmcb()
1185 save->cr4 = 0; in init_vmcb()
1588 static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in svm_set_cr4() argument
1591 unsigned long old_cr4 = to_svm(vcpu)->vmcb->save.cr4; in svm_set_cr4()
1593 if (cr4 & X86_CR4_VMXE) in svm_set_cr4()
1596 if (npt_enabled && ((old_cr4 ^ cr4) & X86_CR4_PGE)) in svm_set_cr4()
1599 vcpu->arch.cr4 = cr4; in svm_set_cr4()
1601 cr4 |= X86_CR4_PAE; in svm_set_cr4()
1602 cr4 |= host_cr4_mce; in svm_set_cr4()
1603 to_svm(vcpu)->vmcb->save.cr4 = cr4; in svm_set_cr4()
[all …]
Dx86.c701 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in kvm_set_cr4() argument
707 if (cr4 & CR4_RESERVED_BITS) in kvm_set_cr4()
710 if (!guest_cpuid_has_xsave(vcpu) && (cr4 & X86_CR4_OSXSAVE)) in kvm_set_cr4()
713 if (!guest_cpuid_has_smep(vcpu) && (cr4 & X86_CR4_SMEP)) in kvm_set_cr4()
716 if (!guest_cpuid_has_smap(vcpu) && (cr4 & X86_CR4_SMAP)) in kvm_set_cr4()
719 if (!guest_cpuid_has_fsgsbase(vcpu) && (cr4 & X86_CR4_FSGSBASE)) in kvm_set_cr4()
723 if (!(cr4 & X86_CR4_PAE)) in kvm_set_cr4()
725 } else if (is_paging(vcpu) && (cr4 & X86_CR4_PAE) in kvm_set_cr4()
726 && ((cr4 ^ old_cr4) & pdptr_bits) in kvm_set_cr4()
731 if ((cr4 & X86_CR4_PCIDE) && !(old_cr4 & X86_CR4_PCIDE)) { in kvm_set_cr4()
[all …]
Dvmx.c3498 vcpu->arch.cr4 &= ~cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3499 vcpu->arch.cr4 |= vmcs_readl(GUEST_CR4) & cr4_guest_owned_bits; in vmx_decache_cr4_guest_bits()
3535 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
3640 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4() argument
3649 (cr4 & ~X86_CR4_MCE) | in vmx_set_cr4()
3653 if (cr4 & X86_CR4_VMXE) { in vmx_set_cr4()
3664 ((cr4 & VMXON_CR4_ALWAYSON) != VMXON_CR4_ALWAYSON)) in vmx_set_cr4()
3667 vcpu->arch.cr4 = cr4; in vmx_set_cr4()
3672 } else if (!(cr4 & X86_CR4_PAE)) { in vmx_set_cr4()
3687 vmcs_writel(CR4_READ_SHADOW, cr4); in vmx_set_cr4()
[all …]
Demulate.c3588 u64 cr4; in check_cr_write() local
3593 cr4 = ctxt->ops->get_cr(ctxt, 4); in check_cr_write()
3597 !(cr4 & X86_CR4_PAE)) in check_cr_write()
3640 u64 cr4; in check_dr_read() local
3645 cr4 = ctxt->ops->get_cr(ctxt, 4); in check_dr_read()
3646 if ((cr4 & X86_CR4_DE) && (dr == 4 || dr == 5)) in check_dr_read()
3698 u64 cr4 = ctxt->ops->get_cr(ctxt, 4); in check_rdtsc() local
3700 if (cr4 & X86_CR4_TSD && ctxt->ops->cpl(ctxt)) in check_rdtsc()
3708 u64 cr4 = ctxt->ops->get_cr(ctxt, 4); in check_rdpmc() local
3711 if ((!(cr4 & X86_CR4_PCE) && ctxt->ops->cpl(ctxt)) || in check_rdpmc()
/linux-4.1.27/arch/x86/realmode/rm/
Dwakeup_asm.S116 movl %eax, %cr4
/linux-4.1.27/arch/x86/kernel/acpi/
Dwakeup_64.S85 movq %rbx, %cr4
/linux-4.1.27/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
321 - mov to cr0/cr4/efer
368 exists when an spte created with cr0.wp=0 and cr4.smep=0 is used after
369 changing cr4.smep to 1. To avoid this, the value of !cr0.wp && cr4.smep
Dapi.txt344 __u64 cr0, cr2, cr3, cr4, cr8;
/linux-4.1.27/arch/s390/kernel/
Dhead64.S51 .quad 0 # cr4: instruction authorization
/linux-4.1.27/arch/x86/xen/
Denlighten.c1015 static void xen_write_cr4(unsigned long cr4) in xen_write_cr4() argument
1017 cr4 &= ~X86_CR4_PGE; in xen_write_cr4()
1018 cr4 &= ~X86_CR4_PSE; in xen_write_cr4()
1020 native_write_cr4(cr4); in xen_write_cr4()
/linux-4.1.27/arch/x86/include/uapi/asm/
Dkvm.h148 __u64 cr0, cr2, cr3, cr4, cr8; member
/linux-4.1.27/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.1.27/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.1.27/arch/x86/mm/
Dinit.c740 .cr4 = ~0UL, /* fail hard if we screw up cr4 shadow initialization */
/linux-4.1.27/arch/powerpc/include/asm/
Dppc_asm.h555 #define cr4 4 macro
/linux-4.1.27/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()