[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Shared memory between a process in dom0 and a process in domU
Hello, Thank you for your answer. As the struct page * I get with vmalloc_to_page is not a valid reference, page_count returns 0 and the function vm_insert_page returns with an error :
int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page) { if (addr < vma->vm_start || addr >= vma->vm_end)
return -EFAULT; if (!page_count(page)) return -EINVAL; if (!(vma->vm_flags & VM_MIXEDMAP)) { BUG_ON(down_read_trylock(&vma->vm_mm->mmap_sem));
BUG_ON(vma->vm_flags & VM_PFNMAP); vma->vm_flags |= VM_MIXEDMAP; } return insert_page(vma, addr, page, vma->vm_page_prot);
} Best regards, Sebastien Fremal 2013/7/29 Ian Campbell <Ian.Campbell@xxxxxxxxxx> On Wed, 2013-07-24 at 14:46 +0000, Sébastien FREMAL [530784] wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |