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

2015-07-07 Thread Bread Cutter
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_

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

2015-07-06 Thread Tim Deegan
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

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

2015-07-06 Thread Ian Campbell
On Thu, 2015-07-02 at 08:14 -0400, Bread Cutter wrote: > Any insight into what I'm doing wrong would be appreciated! I'm afraid I don't have any, but perhaps you want to be looking into either share_xen_page_with_guest or share_xen_page_with_privileged_guests and either using them directly or comp

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

2015-07-02 Thread Bread Cutter
Hi all, I'm trying to map a page provided by Dom0 into Xen's address space, but I keep freezing the physical computer when I try. Maybe I'm hitting a spinlock or something, but clearly I'm doing something incorrectly. I'll probably be able to get farther once I have another computer with a serial