Lines Matching refs:dp
46 dbg_hvm_va2mfn(dbgva_t vaddr, struct domain *dp, int toaddr, gfn_t *gfn) in dbg_hvm_va2mfn() argument
52 DBGP2("vaddr:%lx domid:%d\n", vaddr, dp->domain_id); in dbg_hvm_va2mfn()
54 *gfn = _gfn(paging_gva_to_gfn(dp->vcpu[0], vaddr, &pfec)); in dbg_hvm_va2mfn()
61 mfn = get_gfn(dp, gfn_x(*gfn), &gfntype); in dbg_hvm_va2mfn()
69 vaddr, dp->domain_id, mfn_x(mfn)); in dbg_hvm_va2mfn()
73 put_gfn(dp, gfn_x(*gfn)); in dbg_hvm_va2mfn()
94 dbg_pv_va2mfn(dbgva_t vaddr, struct domain *dp, uint64_t pgd3val) in dbg_pv_va2mfn() argument
100 unsigned long cr3 = (pgd3val ? pgd3val : dp->vcpu[0]->arch.cr3); in dbg_pv_va2mfn()
103 DBGP2("vaddr:%lx domid:%d cr3:%lx pgd3:%lx\n", vaddr, dp->domain_id, in dbg_pv_va2mfn()
157 static unsigned int dbg_rw_guest_mem(struct domain *dp, void * __user gaddr, in dbg_rw_guest_mem() argument
171 mfn = (is_hvm_domain(dp) in dbg_rw_guest_mem()
172 ? dbg_hvm_va2mfn(addr, dp, toaddr, &gfn) in dbg_rw_guest_mem()
173 : dbg_pv_va2mfn(addr, dp, pgd3)); in dbg_rw_guest_mem()
183 paging_mark_dirty(dp, mfn); in dbg_rw_guest_mem()
192 put_gfn(dp, gfn_x(gfn)); in dbg_rw_guest_mem()