[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Cannot get a shared page in domU
Hi, I cannot get a shared page in domU. In a domU, I used the folloing code to grant a page to another domU. share_mem = (share_mem_desp *) __get_free_page(GFP_KERNEL); share_mem->gref = gnttab_grant_foreign_access(domid_remote, virt_to_mfn(share_mem), 0);
In another domU, I used the folloing code to get the shared page. share_vmarea = alloc_vm_area(PAGE_SIZE);
gnttab_set_map_op( &map_op, (unsigned long)share_vmarea->addr, GNTMAP_host_map, gref, domid_remote ); HYPERVISOR_grant_table_op( GNTTABOP_map_grant_ref, &map_op, 1 );
(While using the exactly same code to get the shared page in dom0, it woks all well. But it cannot work in domU.) In domU, when I use insmod to insert the kernel module, it cause kernel crash "Unable to handle kernel paging request at ffffc900000d800c".
I use Xen 4.1.2 and fedora 14 ( linux 3.1.0 both for dom0 and domU ). Can anyone help me?
Thanks! _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |