[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Mapping Dom0 page in hypervisor from domctl



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.