/xen/xen/arch/x86/ |
A D | flushtlb.c | 88 unsigned long flags, cr4; in do_tlb_flush() local 99 else if ( (cr4 = read_cr4()) & X86_CR4_PGE ) in do_tlb_flush() 101 write_cr4(cr4 & ~X86_CR4_PGE); in do_tlb_flush() 102 write_cr4(cr4); in do_tlb_flush() 113 void switch_cr3_cr4(unsigned long cr3, unsigned long cr4) in switch_cr3_cr4() argument 119 ASSERT(!(cr4 & X86_CR4_PCIDE) || !(cr4 & X86_CR4_PGE)); in switch_cr3_cr4() 144 ((cr4 & X86_CR4_PCIDE) || (cr4 & old_cr4 & X86_CR4_PGE)) ) in switch_cr3_cr4() 146 old_cr4 = cr4 & ~X86_CR4_PGE; in switch_cr3_cr4() 158 if ( old_cr4 != cr4 ) in switch_cr3_cr4() 159 write_cr4(cr4); in switch_cr3_cr4() [all …]
|
A D | vm_event.c | 108 w->do_write.cr4 = 0; in vm_event_register_write_resume() 234 req->data.regs.x86.cr4 = curr->arch.hvm.guest_cr[4]; in vm_event_fill_regs()
|
/xen/xen/arch/x86/hvm/svm/ |
A D | svmdebug.c | 108 unsigned long cr4 = vmcb_get_cr4(vmcb); in svm_vmcb_isvalid() local 128 ((!(cr4 & X86_CR4_PAE) || (efer & EFER_LMA)) && (cr3 & 0xfe0)) || in svm_vmcb_isvalid() 133 if ( cr4 & ~hvm_cr4_guest_valid_bits(v->domain, false) ) in svm_vmcb_isvalid() 135 cr4, hvm_cr4_guest_valid_bits(v->domain, false)); in svm_vmcb_isvalid() 153 if ( !(cr4 & X86_CR4_PAE) ) in svm_vmcb_isvalid() 159 if ( (efer & EFER_LME) && (cr0 & X86_CR0_PG) && (cr4 & X86_CR4_PAE) && in svm_vmcb_isvalid()
|
/xen/xen/arch/x86/pv/ |
A D | domain.c | 152 unsigned long pv_fixup_guest_cr4(const struct vcpu *v, unsigned long cr4) in pv_fixup_guest_cr4() argument 157 cr4 &= ~((p->basic.tsc ? 0 : X86_CR4_TSD) | in pv_fixup_guest_cr4() 169 return ((cr4 & PV_CR4_GUEST_MASK) | in pv_fixup_guest_cr4() 190 unsigned long cr4 = mmu_cr4_features & in pv_make_cr4() local 198 cr4 |= X86_CR4_PCIDE; in pv_make_cr4() 200 cr4 |= X86_CR4_PGE; in pv_make_cr4() 207 cr4 |= X86_CR4_TSD; in pv_make_cr4() 216 cr4 &= ~X86_CR4_FSGSBASE; in pv_make_cr4() 218 return cr4; in pv_make_cr4()
|
/xen/xen/include/asm-x86/ |
A D | processor.h | 309 return get_cpu_info()->cr4; in read_cr4() 336 info->cr4 = val & (info->cr4 | ~X86_CR4_FSGSBASE); in write_cr4() 339 : "+m" (info->cr4) /* Force ordering without a barrier. */ in write_cr4() 342 info->cr4 = val; in write_cr4() 373 unsigned long cr4 = read_cr4(); in read_pkru() local 380 write_cr4(cr4 | X86_CR4_PKE); in read_pkru() 383 write_cr4(cr4); in read_pkru()
|
A D | elf.h | 5 unsigned long cr0, cr2, cr3, cr4; member
|
A D | current.h | 44 unsigned long cr4; member
|
A D | flushtlb.h | 102 void switch_cr3_cr4(unsigned long cr3, unsigned long cr4);
|
A D | domain.h | 285 unsigned int cr4 : 1; member 294 uint64_t cr4; member
|
/xen/xen/arch/x86/acpi/ |
A D | wakeup_prot.S | 95 mov %rbx, %cr4 116 mov STACK_CPUINFO_FIELD(cr4)(%rbx), %rax 117 mov %rax, %cr4
|
/xen/xen/include/public/hvm/ |
A D | hvm_vcpu.h | 42 uint32_t cr4; member 105 uint64_t cr4; member
|
/xen/xen/arch/x86/hvm/ |
A D | vm_event.c | 104 if ( unlikely(w->do_write.cr4) ) in hvm_vm_event_do_resume() 106 if ( hvm_set_cr4(w->cr4, false) == X86EMUL_EXCEPTION ) in hvm_vm_event_do_resume() 109 w->do_write.cr4 = 0; in hvm_vm_event_do_resume()
|
A D | domain.c | 211 v->arch.hvm.guest_cr[4] = regs->cr4; in arch_set_info_hvm_guest() 235 if ( !(regs->cr4 & X86_CR4_PAE) ) in arch_set_info_hvm_guest() 238 regs->cr4); in arch_set_info_hvm_guest() 262 v->arch.hvm.guest_cr[4] = regs->cr4; in arch_set_info_hvm_guest()
|
/xen/xen/arch/x86/x86_64/compat/ |
A D | entry.S | 132 mov %rax, %cr4 167 GET_CPUINFO_FIELD(cr4, dx) 172 mov %rax, %cr4 179 mov %cr4, %rax 186 mov %cr4, %rcx 188 mov %rcx, %cr4
|
/xen/xen/arch/x86/cpu/mtrr/ |
A D | generic.c | 444 unsigned long cr4; in prepare_set() local 463 cr4 = read_cr4(); in prepare_set() 464 if (cr4 & X86_CR4_PGE) in prepare_set() 465 write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set() 480 return cr4 & X86_CR4_PGE; in prepare_set()
|
/xen/xen/arch/x86/x86_64/ |
A D | kexec_reloc.S | 66 movq %rax, %cr4 167 movl %eax, %cr4
|
/xen/xen/arch/x86/boot/ |
A D | x86_64.S | 16 mov %rcx,%cr4 56 mov %rcx, %cr4
|
A D | wakeup.S | 112 mov %ecx, %cr4
|
/xen/xen/include/asm-x86/pv/ |
A D | domain.h | 87 unsigned long pv_fixup_guest_cr4(const struct vcpu *v, unsigned long cr4);
|
/xen/xen/include/asm-x86/x86_64/ |
A D | elf.h | 77 xen_core_regs->cr4 = tmp; in elf_core_save_regs()
|
/xen/tools/libxc/ |
A D | xc_pagetab.c | 50 pt_levels = (ctx.msr_efer&EFER_LMA) ? 4 : (ctx.cr4&CR4_PAE) ? 3 : 2; in xc_translate_foreign_address()
|
/xen/tools/debugger/kdd/ |
A D | kdd-xen.c | 370 c->cr4 = cpu->cr4; in kdd_get_ctrl_x86_32() 392 c->cr4 = cpu->cr4; in kdd_get_ctrl_x86_64()
|
A D | kdd.h | 416 uint32_t cr4; member 438 uint64_t cr4; member
|
/xen/xen/include/public/arch-x86/hvm/ |
A D | save.h | 83 uint64_t cr4; member 197 uint64_t cr4; member
|
/xen/xen/include/public/ |
A D | vm_event.h | 203 uint64_t cr4; member
|