Home
last modified time | relevance | path

Searched refs:cr3 (Results 1 – 25 of 48) sorted by relevance

12

/xen/xen/arch/x86/mm/hap/
A Dguest_walk.c45 unsigned long cr3 = v->arch.hvm.guest_cr[3]; in hap_gva_to_gfn() local
46 return hap_p2m_ga_to_gfn(GUEST_PAGING_LEVELS)(v, p2m, cr3, gva, pfec, NULL); in hap_gva_to_gfn()
50 struct vcpu *v, struct p2m_domain *p2m, unsigned long cr3, in hap_p2m_ga_to_gfn()
62 top_gfn = _gfn(cr3 >> PAGE_SHIFT); in hap_p2m_ga_to_gfn()
71 p2m_mem_paging_populate(p2m->domain, gaddr_to_gfn(cr3)); in hap_p2m_ga_to_gfn()
92 top_map += (cr3 & ~(PAGE_MASK | 31)); in hap_p2m_ga_to_gfn()
A Dprivate.h41 struct p2m_domain *p2m, unsigned long cr3,
44 struct p2m_domain *p2m, unsigned long cr3,
47 struct p2m_domain *p2m, unsigned long cr3,
/xen/xen/common/efi/
A Druntime.c91 state.cr3 = read_cr3(); in efi_rs_enter()
123 if ( !state->cr3 ) in efi_rs_leave()
155 if ( !state.cr3 ) in efi_get_time()
174 if ( !state.cr3 ) in efi_halt_system()
187 if ( !state.cr3 ) in efi_reset_system()
374 if ( !state.cr3 ) in efi_runtime_call()
396 if ( !state.cr3 ) in efi_runtime_call()
412 if ( !state.cr3 ) in efi_runtime_call()
456 if ( state.cr3 ) in efi_runtime_call()
500 if ( state.cr3 ) in efi_runtime_call()
[all …]
/xen/xen/include/asm-x86/
A Dflushtlb.h95 unsigned long cr3; in read_cr3() local
97 "mov %%cr3, %0" : "=r" (cr3) : ); in read_cr3()
98 return cr3; in read_cr3()
102 void switch_cr3_cr4(unsigned long cr3, unsigned long cr4);
A Delf.h5 unsigned long cr0, cr2, cr3, cr4; member
A Dprocessor.h297 static inline unsigned long cr3_pa(unsigned long cr3) in cr3_pa() argument
299 return cr3 & X86_CR3_ADDR_MASK; in cr3_pa()
302 static inline unsigned int cr3_pcid(unsigned long cr3) in cr3_pcid() argument
304 return IS_ENABLED(CONFIG_PV) ? cr3 & X86_CR3_PCID_MASK : 0; in cr3_pcid()
A Dpaging.h134 unsigned long cr3,
283 unsigned long cr3, in paging_ga_to_gfn_cr3() argument
289 return paging_get_hostmode(v)->p2m_ga_to_gfn(v, p2m, cr3, ga, pfec, in paging_ga_to_gfn_cr3()
A Ddomain.h284 unsigned int cr3 : 1; member
293 uint64_t cr3; member
606 unsigned long cr3; /* (MA) value to install in HW CR3 */ member
A Dmm.h527 #define compat_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20)) argument
/xen/tools/libxc/
A Dxc_sr_common_x86_pv.c38 xen_pfn_t cr3_to_mfn(struct xc_sr_context *ctx, uint64_t cr3) in cr3_to_mfn() argument
41 return cr3 >> 12; in cr3_to_mfn()
45 if ( cr3 & 0xffffffff00000000UL ) in cr3_to_mfn()
48 return (uint32_t)((cr3 >> 12) | (cr3 << 20)); in cr3_to_mfn()
A Dxc_sr_common_x86_pv.h36 xen_pfn_t cr3_to_mfn(struct xc_sr_context *ctx, uint64_t cr3);
A Dxc_pagetab.c51 paddr = ctx.cr3 & ((pt_levels == 3) ? ~0x1full : ~0xfffull); in xc_translate_foreign_address()
/xen/xen/arch/x86/hvm/svm/
A Dsvmdebug.c107 unsigned long cr3 = vmcb_get_cr3(vmcb); in svm_vmcb_isvalid() local
127 ((cr3 & 7) || in svm_vmcb_isvalid()
128 ((!(cr4 & X86_CR4_PAE) || (efer & EFER_LMA)) && (cr3 & 0xfe0)) || in svm_vmcb_isvalid()
130 (cr3 >> v->domain->arch.cpuid->extd.maxphysaddr))) ) in svm_vmcb_isvalid()
131 PRINTF("CR3: MBZ bits are set (%#"PRIx64")\n", cr3); in svm_vmcb_isvalid()
/xen/xen/include/public/arch-x86/
A Dxen-x86_32.h168 #define xen_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20)) argument
A Dxen-x86_64.h219 #define xen_cr3_to_pfn(cr3) ((unsigned long)(cr3) >> 12) argument
/xen/xen/arch/x86/
A Dflushtlb.c113 void switch_cr3_cr4(unsigned long cr3, unsigned long cr4) in switch_cr3_cr4() argument
155 cr3 |= X86_CR3_NOFLUSH; in switch_cr3_cr4()
156 write_cr3(cr3); in switch_cr3_cr4()
A Ddebug.c73 unsigned long cr3 = (pgd3val ? pgd3val : dp->vcpu[0]->arch.cr3); in dbg_pv_va2mfn() local
74 mfn_t mfn = maddr_to_mfn(cr3_pa(cr3)); in dbg_pv_va2mfn()
/xen/xen/include/public/hvm/
A Dhvm_vcpu.h41 uint32_t cr3; member
104 uint64_t cr3; member
/xen/xen/arch/x86/hvm/
A Dvm_event.c112 if ( unlikely(w->do_write.cr3) ) in hvm_vm_event_do_resume()
114 if ( hvm_set_cr3(w->cr3, w->cr3_noflush, false) == X86EMUL_EXCEPTION ) in hvm_vm_event_do_resume()
117 w->do_write.cr3 = 0; in hvm_vm_event_do_resume()
A Ddomain.c210 v->arch.hvm.guest_cr[3] = regs->cr3; in arch_set_info_hvm_guest()
261 v->arch.hvm.guest_cr[3] = regs->cr3; in arch_set_info_hvm_guest()
/xen/xen/arch/x86/pv/
A Ddomain.c415 unsigned long cr3; in _toggle_guest_pt() local
428 cr3 = v->arch.cr3; in _toggle_guest_pt()
430 cr3 &= ~X86_CR3_NOFLUSH; in _toggle_guest_pt()
431 write_cr3(cr3); in _toggle_guest_pt()
/xen/xen/arch/x86/x86_64/
A Dentry.S171 mov %rax, %cr3
260 mov %rcx, %cr3
300 mov %rcx, %cr3
349 mov %rcx, %cr3
587 mov %rax, %cr3
610 mov %rcx, %cr3
642 mov %rcx, %cr3
845 mov %rbx, %cr3
880 mov %rcx, %cr3
/xen/tools/xentrace/
A Dxenalyze.c1651 } cr3; member
1876 } cr3; member
2516 P.interval.cr3 = cr3; in interval_cr3_value_check()
2589 if(P.interval.cr3) { in interval_cr3_short_summary_output()
2932 if(v->cr3.data) in hvm_update_short_summary()
3896 if(v->cr3.data) { in cr3_switch()
3964 v->cr3.data ? (v->cr3.data->cr3_id) : 0); in cr3_switch()
3971 v->cr3.val = val; in cr3_switch()
3978 for(cr3 = v->d->cr3_value_head; cr3; cr3=cr3->next) in cr3_prealloc_unpin()
3982 if(!cr3) in cr3_prealloc_unpin()
[all …]
/xen/xen/include/asm-x86/x86_64/
A Delf.h74 xen_core_regs->cr3 = tmp; in elf_core_save_regs()
/xen/tools/debugger/kdd/
A Dkdd-xen.c369 c->cr3 = cpu->cr3; in kdd_get_ctrl_x86_32()
391 c->cr3 = cpu->cr3; in kdd_get_ctrl_x86_64()

Completed in 64 milliseconds

12