[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Mapping Dom0 page in hypervisor from domctl
Thank you very much, that seems to have fixed my problem. My new approach: -------- guest_get_eff_l1e(current, domctl->va, &pte); page_info = l1e_get_page(pte); if ( ((l1e_get_flags(pte) & (_PAGE_PRESENT)) != _PAGE_PRESENT) ) { ret = -ENOMEM; break; } d->arch.hvm_domain.dom0_mapping.page_info = page_info; d->arch.hvm_domain.dom0_mapping.buffer = (uint8_t*)__map_domain_page(page_info); -------- Thanks! On Mon, Jul 6, 2015 at 5:47 AM, Tim Deegan <tim@xxxxxxx> wrote: > Hi, > > At 08:14 -0400 on 02 Jul (1435824854), Bread Cutter wrote: >> /* Translate the given virtual address to the guest frame number >> */ >> gfn = paging_gva_to_gfn(current, domctl->va, &pfec); > > This function only works for domains that have paging assistance > enabled (i.e. not typically dom0). You might try using > guest_get_eff_l1e() to find the PTE that maps domctl->va; that works > for PV guests. There's some code in ptwr_do_page_fault() that you > could start with. > > Cheers, > > Tim. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |