Home
last modified time | relevance | path

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

12

/xen/xen/arch/x86/
A Dflushtlb.c88 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 Dvm_event.c108 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 Dsvmdebug.c108 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 Ddomain.c152 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 Dprocessor.h309 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 Delf.h5 unsigned long cr0, cr2, cr3, cr4; member
A Dcurrent.h44 unsigned long cr4; member
A Dflushtlb.h102 void switch_cr3_cr4(unsigned long cr3, unsigned long cr4);
A Ddomain.h285 unsigned int cr4 : 1; member
294 uint64_t cr4; member
/xen/xen/arch/x86/acpi/
A Dwakeup_prot.S95 mov %rbx, %cr4
116 mov STACK_CPUINFO_FIELD(cr4)(%rbx), %rax
117 mov %rax, %cr4
/xen/xen/include/public/hvm/
A Dhvm_vcpu.h42 uint32_t cr4; member
105 uint64_t cr4; member
/xen/xen/arch/x86/hvm/
A Dvm_event.c104 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 Ddomain.c211 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 Dentry.S132 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 Dgeneric.c444 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 Dkexec_reloc.S66 movq %rax, %cr4
167 movl %eax, %cr4
/xen/xen/arch/x86/boot/
A Dx86_64.S16 mov %rcx,%cr4
56 mov %rcx, %cr4
A Dwakeup.S112 mov %ecx, %cr4
/xen/xen/include/asm-x86/pv/
A Ddomain.h87 unsigned long pv_fixup_guest_cr4(const struct vcpu *v, unsigned long cr4);
/xen/xen/include/asm-x86/x86_64/
A Delf.h77 xen_core_regs->cr4 = tmp; in elf_core_save_regs()
/xen/tools/libxc/
A Dxc_pagetab.c50 pt_levels = (ctx.msr_efer&EFER_LMA) ? 4 : (ctx.cr4&CR4_PAE) ? 3 : 2; in xc_translate_foreign_address()
/xen/tools/debugger/kdd/
A Dkdd-xen.c370 c->cr4 = cpu->cr4; in kdd_get_ctrl_x86_32()
392 c->cr4 = cpu->cr4; in kdd_get_ctrl_x86_64()
A Dkdd.h416 uint32_t cr4; member
438 uint64_t cr4; member
/xen/xen/include/public/arch-x86/hvm/
A Dsave.h83 uint64_t cr4; member
197 uint64_t cr4; member
/xen/xen/include/public/
A Dvm_event.h203 uint64_t cr4; member

Completed in 41 milliseconds

12